| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 if (m_storageBlockingPolicy == enabled) | 489 if (m_storageBlockingPolicy == enabled) |
| 490 return; | 490 return; |
| 491 | 491 |
| 492 m_storageBlockingPolicy = enabled; | 492 m_storageBlockingPolicy = enabled; |
| 493 m_page->storageBlockingStateChanged(); | 493 m_page->storageBlockingStateChanged(); |
| 494 } | 494 } |
| 495 | 495 |
| 496 void Settings::setTiledBackingStoreEnabled(bool enabled) | 496 void Settings::setTiledBackingStoreEnabled(bool enabled) |
| 497 { | 497 { |
| 498 m_tiledBackingStoreEnabled = enabled; | 498 m_tiledBackingStoreEnabled = enabled; |
| 499 #if USE(TILED_BACKING_STORE) | |
| 500 if (m_page->mainFrame()) | |
| 501 m_page->mainFrame()->setTiledBackingStoreEnabled(enabled); | |
| 502 #endif | |
| 503 } | 499 } |
| 504 | 500 |
| 505 void Settings::setScrollingPerformanceLoggingEnabled(bool enabled) | 501 void Settings::setScrollingPerformanceLoggingEnabled(bool enabled) |
| 506 { | 502 { |
| 507 m_scrollingPerformanceLoggingEnabled = enabled; | 503 m_scrollingPerformanceLoggingEnabled = enabled; |
| 508 | 504 |
| 509 if (m_page->mainFrame() && m_page->mainFrame()->view()) | 505 if (m_page->mainFrame() && m_page->mainFrame()->view()) |
| 510 m_page->mainFrame()->view()->setScrollingPerformanceLoggingEnabled(enabl
ed); | 506 m_page->mainFrame()->view()->setScrollingPerformanceLoggingEnabled(enabl
ed); |
| 511 } | 507 } |
| 512 | 508 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 539 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) | 535 void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag) |
| 540 { | 536 { |
| 541 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) | 537 if (m_hiddenPageDOMTimerThrottlingEnabled == flag) |
| 542 return; | 538 return; |
| 543 m_hiddenPageDOMTimerThrottlingEnabled = flag; | 539 m_hiddenPageDOMTimerThrottlingEnabled = flag; |
| 544 m_page->hiddenPageDOMTimerThrottlingStateChanged(); | 540 m_page->hiddenPageDOMTimerThrottlingStateChanged(); |
| 545 } | 541 } |
| 546 #endif | 542 #endif |
| 547 | 543 |
| 548 } // namespace WebCore | 544 } // namespace WebCore |
| OLD | NEW |