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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 double Settings::gHiddenPageDOMTimerAlignmentInterval = 1.0; | 89 double Settings::gHiddenPageDOMTimerAlignmentInterval = 1.0; |
90 | 90 |
91 #if USE(SAFARI_THEME) | 91 #if USE(SAFARI_THEME) |
92 bool Settings::gShouldPaintNativeControls = true; | 92 bool Settings::gShouldPaintNativeControls = true; |
93 #endif | 93 #endif |
94 | 94 |
95 #if USE(AVFOUNDATION) | 95 #if USE(AVFOUNDATION) |
96 bool Settings::gAVFoundationEnabled = false; | 96 bool Settings::gAVFoundationEnabled = false; |
97 #endif | 97 #endif |
98 | 98 |
99 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) | |
100 bool Settings::gQTKitEnabled = true; | |
101 #endif | |
102 | |
103 bool Settings::gMockScrollbarsEnabled = false; | 99 bool Settings::gMockScrollbarsEnabled = false; |
104 bool Settings::gUsesOverlayScrollbars = false; | 100 bool Settings::gUsesOverlayScrollbars = false; |
105 | 101 |
106 #if PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(WX)) | 102 #if PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(WX)) |
107 bool Settings::gShouldUseHighResolutionTimers = true; | 103 bool Settings::gShouldUseHighResolutionTimers = true; |
108 #endif | 104 #endif |
109 | 105 |
110 // NOTEs | 106 // NOTEs |
111 // 1) EditingMacBehavior comprises Tiger, Leopard, SnowLeopard and iOS builds,
as well QtWebKit and Chromium when built on Mac; | 107 // 1) EditingMacBehavior comprises Tiger, Leopard, SnowLeopard and iOS builds,
as well QtWebKit and Chromium when built on Mac; |
112 // 2) EditingWindowsBehavior comprises Win32 and WinCE builds, as well as QtWeb
Kit and Chromium when built on Windows; | 108 // 2) EditingWindowsBehavior comprises Win32 and WinCE builds, as well as QtWeb
Kit and Chromium when built on Windows; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 void Settings::setAVFoundationEnabled(bool enabled) | 548 void Settings::setAVFoundationEnabled(bool enabled) |
553 { | 549 { |
554 if (gAVFoundationEnabled == enabled) | 550 if (gAVFoundationEnabled == enabled) |
555 return; | 551 return; |
556 | 552 |
557 gAVFoundationEnabled = enabled; | 553 gAVFoundationEnabled = enabled; |
558 HTMLMediaElement::resetMediaEngines(); | 554 HTMLMediaElement::resetMediaEngines(); |
559 } | 555 } |
560 #endif | 556 #endif |
561 | 557 |
562 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) | |
563 void Settings::setQTKitEnabled(bool enabled) | |
564 { | |
565 if (gQTKitEnabled == enabled) | |
566 return; | |
567 | |
568 gQTKitEnabled = enabled; | |
569 HTMLMediaElement::resetMediaEngines(); | |
570 } | |
571 #endif | |
572 | |
573 void Settings::setScrollingPerformanceLoggingEnabled(bool enabled) | 558 void Settings::setScrollingPerformanceLoggingEnabled(bool enabled) |
574 { | 559 { |
575 m_scrollingPerformanceLoggingEnabled = enabled; | 560 m_scrollingPerformanceLoggingEnabled = enabled; |
576 | 561 |
577 if (m_page->mainFrame() && m_page->mainFrame()->view()) | 562 if (m_page->mainFrame() && m_page->mainFrame()->view()) |
578 m_page->mainFrame()->view()->setScrollingPerformanceLoggingEnabled(enabl
ed); | 563 m_page->mainFrame()->view()->setScrollingPerformanceLoggingEnabled(enabl
ed); |
579 } | 564 } |
580 | 565 |
581 void Settings::setAggressiveTileRetentionEnabled(bool enabled) | 566 void Settings::setAggressiveTileRetentionEnabled(bool enabled) |
582 { | 567 { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 void Settings::setHiddenPageCSSAnimationSuspensionEnabled(bool flag) | 602 void Settings::setHiddenPageCSSAnimationSuspensionEnabled(bool flag) |
618 { | 603 { |
619 if (m_hiddenPageCSSAnimationSuspensionEnabled == flag) | 604 if (m_hiddenPageCSSAnimationSuspensionEnabled == flag) |
620 return; | 605 return; |
621 m_hiddenPageCSSAnimationSuspensionEnabled = flag; | 606 m_hiddenPageCSSAnimationSuspensionEnabled = flag; |
622 m_page->hiddenPageCSSAnimationSuspensionStateChanged(); | 607 m_page->hiddenPageCSSAnimationSuspensionStateChanged(); |
623 } | 608 } |
624 #endif | 609 #endif |
625 | 610 |
626 } // namespace WebCore | 611 } // namespace WebCore |
OLD | NEW |