OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 , m_offlineWebApplicationCacheEnabled(false) | 140 , m_offlineWebApplicationCacheEnabled(false) |
141 , m_shouldPaintCustomScrollbars(false) | 141 , m_shouldPaintCustomScrollbars(false) |
142 , m_enforceCSSMIMETypeInNoQuirksMode(true) | 142 , m_enforceCSSMIMETypeInNoQuirksMode(true) |
143 , m_usesEncodingDetector(false) | 143 , m_usesEncodingDetector(false) |
144 , m_allowScriptsToCloseWindows(false) | 144 , m_allowScriptsToCloseWindows(false) |
145 // FIXME: This should really be disabled by default as it makes platforms th
at don't support the feature download files | 145 // FIXME: This should really be disabled by default as it makes platforms th
at don't support the feature download files |
146 // they can't use by. Leaving enabled for now to not change existing behavio
r. | 146 // they can't use by. Leaving enabled for now to not change existing behavio
r. |
147 , m_downloadableBinaryFontsEnabled(true) | 147 , m_downloadableBinaryFontsEnabled(true) |
148 , m_xssAuditorEnabled(false) | 148 , m_xssAuditorEnabled(false) |
149 , m_acceleratedCompositingEnabled(true) | 149 , m_acceleratedCompositingEnabled(true) |
| 150 , m_acceleratedCompositingFor3DTransformsEnabled(true) |
| 151 , m_acceleratedCompositingForVideoEnabled(true) |
| 152 , m_acceleratedCompositingForPluginsEnabled(true) |
| 153 , m_acceleratedCompositingForCanvasEnabled(true) |
| 154 , m_acceleratedCompositingForAnimationEnabled(true) |
150 , m_showDebugBorders(false) | 155 , m_showDebugBorders(false) |
151 , m_showRepaintCounter(false) | 156 , m_showRepaintCounter(false) |
152 , m_experimentalNotificationsEnabled(false) | 157 , m_experimentalNotificationsEnabled(false) |
153 , m_webGLEnabled(false) | 158 , m_webGLEnabled(false) |
154 , m_acceleratedCanvas2dEnabled(false) | 159 , m_acceleratedCanvas2dEnabled(false) |
155 , m_loadDeferringEnabled(true) | 160 , m_loadDeferringEnabled(true) |
156 , m_tiledBackingStoreEnabled(false) | 161 , m_tiledBackingStoreEnabled(false) |
157 , m_paginateDuringLayoutEnabled(false) | 162 , m_paginateDuringLayoutEnabled(false) |
158 , m_dnsPrefetchingEnabled(true) | 163 , m_dnsPrefetchingEnabled(true) |
159 #if ENABLE(FULLSCREEN_API) | 164 #if ENABLE(FULLSCREEN_API) |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 | 582 |
578 void Settings::setAcceleratedCompositingEnabled(bool enabled) | 583 void Settings::setAcceleratedCompositingEnabled(bool enabled) |
579 { | 584 { |
580 if (m_acceleratedCompositingEnabled == enabled) | 585 if (m_acceleratedCompositingEnabled == enabled) |
581 return; | 586 return; |
582 | 587 |
583 m_acceleratedCompositingEnabled = enabled; | 588 m_acceleratedCompositingEnabled = enabled; |
584 setNeedsRecalcStyleInAllFrames(m_page); | 589 setNeedsRecalcStyleInAllFrames(m_page); |
585 } | 590 } |
586 | 591 |
| 592 void Settings::setAcceleratedCompositingFor3DTransformsEnabled(bool enabled) |
| 593 { |
| 594 m_acceleratedCompositingFor3DTransformsEnabled = enabled; |
| 595 } |
| 596 |
| 597 void Settings::setAcceleratedCompositingForVideoEnabled(bool enabled) |
| 598 { |
| 599 m_acceleratedCompositingForVideoEnabled = enabled; |
| 600 } |
| 601 |
| 602 void Settings::setAcceleratedCompositingForPluginsEnabled(bool enabled) |
| 603 { |
| 604 m_acceleratedCompositingForPluginsEnabled = enabled; |
| 605 } |
| 606 |
| 607 void Settings::setAcceleratedCompositingForCanvasEnabled(bool enabled) |
| 608 { |
| 609 m_acceleratedCompositingForCanvasEnabled = enabled; |
| 610 } |
| 611 |
| 612 void Settings::setAcceleratedCompositingForAnimationEnabled(bool enabled) |
| 613 { |
| 614 m_acceleratedCompositingForAnimationEnabled = enabled; |
| 615 } |
| 616 |
587 void Settings::setShowDebugBorders(bool enabled) | 617 void Settings::setShowDebugBorders(bool enabled) |
588 { | 618 { |
589 if (m_showDebugBorders == enabled) | 619 if (m_showDebugBorders == enabled) |
590 return; | 620 return; |
591 | 621 |
592 m_showDebugBorders = enabled; | 622 m_showDebugBorders = enabled; |
593 setNeedsRecalcStyleInAllFrames(m_page); | 623 setNeedsRecalcStyleInAllFrames(m_page); |
594 } | 624 } |
595 | 625 |
596 void Settings::setShowRepaintCounter(bool enabled) | 626 void Settings::setShowRepaintCounter(bool enabled) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 void Settings::setTiledBackingStoreEnabled(bool enabled) | 668 void Settings::setTiledBackingStoreEnabled(bool enabled) |
639 { | 669 { |
640 m_tiledBackingStoreEnabled = enabled; | 670 m_tiledBackingStoreEnabled = enabled; |
641 #if ENABLE(TILED_BACKING_STORE) | 671 #if ENABLE(TILED_BACKING_STORE) |
642 if (m_page->mainFrame()) | 672 if (m_page->mainFrame()) |
643 m_page->mainFrame()->setTiledBackingStoreEnabled(enabled); | 673 m_page->mainFrame()->setTiledBackingStoreEnabled(enabled); |
644 #endif | 674 #endif |
645 } | 675 } |
646 | 676 |
647 } // namespace WebCore | 677 } // namespace WebCore |
OLD | NEW |