Changeset 67758 in webkit
- Timestamp:
- Sep 17, 2010 4:23:17 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r67751 r67758 1 2010-09-17 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 Reduce minimum DOMTimer interval 6 https://bugs.webkit.org/show_bug.cgi?id=45362 7 8 Reduced the minimum allowed DOMTimer interval to 4ms. This has us matching Chrome, 9 which hasn't had any problem with 4ms in the past 2 years, as well as increasing our 10 performance on perf tests that have tight frequent loops such as canvas "animation" 11 performance tests. 12 13 No new tests added. Can't reliably instrument a test in javascript to verify that 14 the minimum clamped interval time is in fact 4ms. 15 16 * WebCore.exp.in: 17 * page/DOMTimer.cpp: Removed old comments. 18 * page/DOMTimer.h: Removed old comments. 19 * page/Settings.cpp: Exposted new method to set minimum DOMTimer interval. 20 * page/Settings.h: 21 1 22 2010-09-17 Marc-Antoine Ruel <maruel@chromium.org> 2 23 -
trunk/WebCore/WebCore.exp.in
r67731 r67758 702 702 __ZN7WebCore8Settings21setWebSecurityEnabledEb 703 703 __ZN7WebCore8Settings22setLocalStorageEnabledEb 704 __ZN7WebCore8Settings22setMinDOMTimerIntervalEd 704 705 __ZN7WebCore8Settings22setSansSerifFontFamilyERKN3WTF12AtomicStringE 705 706 __ZN7WebCore8Settings22setSessionStorageQuotaEj -
trunk/WebCore/page/DOMTimer.cpp
r62551 r67758 61 61 double intervalMilliseconds = max(oneMillisecond, timeout * oneMillisecond); 62 62 63 // Use a minimum interval of 10 ms to match other browsers, but only once we've64 // nested enough to notice that we're repeating.65 // Faster timers might be "better", but they're incompatible.66 63 if (intervalMilliseconds < s_minTimerInterval && m_nestingLevel >= maxTimerNestingLevel) 67 64 intervalMilliseconds = s_minTimerInterval; -
trunk/WebCore/page/DOMTimer.h
r60150 r67758 50 50 51 51 // The lowest allowable timer setting (in seconds, 0.001 == 1 ms). 52 // Default is 10ms.53 // Chromium uses a non-default timeout.54 52 static double minTimerInterval() { return s_minTimerInterval; } 55 53 static void setMinTimerInterval(double value) { s_minTimerInterval = value; } -
trunk/WebCore/page/Settings.cpp
r67274 r67758 28 28 29 29 #include "BackForwardList.h" 30 #include "CachedResourceLoader.h" 31 #include "DOMTimer.h" 30 32 #include "Database.h" 31 #include "CachedResourceLoader.h"32 33 #include "Frame.h" 33 34 #include "FrameTree.h" … … 405 406 } 406 407 408 void Settings::setMinDOMTimerInterval(double interval) 409 { 410 DOMTimer::setMinTimerInterval(interval); 411 } 412 407 413 void Settings::setUsesPageCache(bool usesPageCache) 408 414 { -
trunk/WebCore/page/Settings.h
r67274 r67758 200 200 void setDOMPasteAllowed(bool); 201 201 bool isDOMPasteAllowed() const { return m_isDOMPasteAllowed; } 202 203 void setMinDOMTimerInterval(double); // Interval specified in seconds. 202 204 203 205 void setUsesPageCache(bool); -
trunk/WebKit/mac/ChangeLog
r67731 r67758 1 2010-09-17 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 Reduce minimum DOMTimer interval 6 https://bugs.webkit.org/show_bug.cgi?id=45362 7 8 * WebView/WebView.mm: Added in a call to set the mimimum allowed DOMTimer to 4ms. 9 1 10 2010-09-17 Chris Marrin <cmarrin@apple.com> 2 11 -
trunk/WebKit/mac/WebView/WebView.mm
r67731 r67758 697 697 _private->page->setCanStartMedia([self window]); 698 698 _private->page->settings()->setLocalStorageDatabasePath([[self preferences] _localStorageDatabasePath]); 699 _private->page->settings()->setMinDOMTimerInterval(0.004); 699 700 700 701 [WebFrame _createMainFrameWithPage:_private->page frameName:frameName frameView:frameView]; -
trunk/WebKit/win/ChangeLog
r67735 r67758 1 2010-09-17 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 Reduce minimum DOMTimer interval 6 https://bugs.webkit.org/show_bug.cgi?id=45362 7 8 * WebView.cpp: Added in a call to set the mimimum allowed DOMTimer to 4ms. 9 1 10 2010-09-17 Simon Fraser <simon.fraser@apple.com> 2 11 -
trunk/WebKit/win/WebView.cpp
r67735 r67758 2568 2568 WebKitSetApplicationCachePathIfNecessary(); 2569 2569 WebPlatformStrategies::initialize(); 2570 2570 2571 2571 #if USE(SAFARI_THEME) 2572 2572 BOOL shouldPaintNativeControls; … … 2590 2590 #endif 2591 2591 m_page = new Page(pageClients); 2592 m_page->settings()->setMinDOMTimerInterval(0.004); 2592 2593 2593 2594 BSTR localStoragePath; -
trunk/WebKit2/ChangeLog
r67754 r67758 1 2010-09-17 Matthew Delaney <mdelaney@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 Reduce minimum DOMTimer interval 6 https://bugs.webkit.org/show_bug.cgi?id=45362 7 8 * WebProcess/WebPage/WebPage.cpp: Added in a call to set the mimimum allowed DOMTimer to 4ms. 9 1 10 2010-09-17 Anders Carlsson <andersca@apple.com> 2 11 -
trunk/WebKit2/WebProcess/WebPage/WebPage.cpp
r67631 r67758 117 117 m_page->settings()->setSerifFontFamily(store.serifFontFamily); 118 118 m_page->settings()->setJavaScriptCanOpenWindowsAutomatically(true); 119 m_page->settings()->setMinDOMTimerInterval(0.004); 119 120 120 121 m_page->setGroupName("WebKit2Group");
Note: See TracChangeset
for help on using the changeset viewer.