Changeset 69646 in webkit
- Timestamp:
- Oct 13, 2010 3:00:34 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 12 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69645 r69646 1 2010-10-13 Steve Block <steveblock@google.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Pages using DeviceOrientation and DeviceMotion should not go into the page cache 6 https://bugs.webkit.org/show_bug.cgi?id=47408 7 8 * fast/dom/DeviceMotion/no-page-cache-expected.txt: Added. 9 * fast/dom/DeviceMotion/no-page-cache.html: Added. 10 * fast/dom/DeviceMotion/resources: Added. 11 * fast/dom/DeviceMotion/resources/cached-page-1.html: Added. 12 * fast/dom/DeviceMotion/resources/cached-page-2.html: Added. 13 * fast/dom/DeviceMotion/script-tests/no-page-cache.js: Added. 14 (reportPageOneOnload): 15 * fast/dom/DeviceOrientation/no-page-cache-expected.txt: Added. 16 * fast/dom/DeviceOrientation/no-page-cache.html: Added. 17 * fast/dom/DeviceOrientation/resources: Added. 18 * fast/dom/DeviceOrientation/resources/cached-page-1.html: Added. 19 * fast/dom/DeviceOrientation/resources/cached-page-2.html: Added. 20 * fast/dom/DeviceOrientation/script-tests/no-page-cache.js: Added. 21 (reportPageOneOnload): 22 1 23 2010-10-13 Alexander Pavlov <apavlov@chromium.org> 2 24 -
trunk/WebCore/ChangeLog
r69643 r69646 1 2010-10-13 Steve Block <steveblock@google.com> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Pages using DeviceOrientation and DeviceMotion should not go into the page cache 6 https://bugs.webkit.org/show_bug.cgi?id=47408 7 8 Tests: fast/dom/DeviceMotion/no-page-cache.html 9 fast/dom/DeviceOrientation/no-page-cache.html 10 11 * dom/DeviceMotionController.h: 12 (WebCore::DeviceMotionController::isActive): 13 * dom/DeviceOrientationController.h: 14 (WebCore::DeviceOrientationController::isActive): 15 * history/PageCache.cpp: 16 (WebCore::logCanCachePageDecision): 17 (WebCore::PageCache::canCache): 18 * page/Page.cpp: 19 1 20 2010-10-13 Jenn Braithwaite <jennb@chromium.org> 2 21 -
trunk/WebCore/dom/DeviceMotionController.h
r67949 r69646 47 47 void didChangeDeviceMotion(DeviceMotionData*); 48 48 49 bool isActive() { return !m_listeners.isEmpty(); } 50 49 51 private: 50 52 void timerFired(Timer<DeviceMotionController>*); -
trunk/WebCore/dom/DeviceOrientationController.h
r67949 r69646 49 49 void didChangeDeviceOrientation(DeviceOrientation*); 50 50 51 bool isActive() { return !m_listeners.isEmpty(); } 52 51 53 private: 52 54 void timerFired(Timer<DeviceOrientationController>*); -
trunk/WebCore/history/PageCache.cpp
r67619 r69646 32 32 #include "CachedPage.h" 33 33 #include "DOMWindow.h" 34 #include "DeviceMotionController.h" 35 #include "DeviceOrientationController.h" 34 36 #include "Document.h" 35 37 #include "DocumentLoader.h" … … 202 204 cannotCache = true; 203 205 } 206 #if ENABLE(DEVICE_ORIENTATION) 207 if (!page->deviceMotionController()->isActive()) { 208 PCLOG(" -Page is using DeviceMotion"); 209 cannotCache = true; 210 } 211 if (!page->deviceOrientationController()->isActive()) { 212 PCLOG(" -Page is using DeviceOrientation"); 213 cannotCache = true; 214 } 215 #endif 204 216 if (loadType == FrameLoadTypeReload) { 205 217 PCLOG(" -Load type is: Reload"); … … 298 310 && page->backForwardList()->capacity() > 0 299 311 && page->settings()->usesPageCache() 300 && loadType != FrameLoadTypeReload 312 #if ENABLE(DEVICE_ORIENTATION) 313 && !page->deviceMotionController()->isActive() 314 && !page->deviceOrientationController()->isActive() 315 #endif 316 && loadType != FrameLoadTypeReload 301 317 && loadType != FrameLoadTypeReloadFromOrigin 302 318 && loadType != FrameLoadTypeSame; -
trunk/WebCore/page/Page.cpp
r69635 r69646 21 21 #include "Page.h" 22 22 23 #include "DeviceMotionController.h"24 23 #include "BackForwardController.h" 25 24 #include "BackForwardList.h" … … 31 30 #include "ContextMenuController.h" 32 31 #include "DOMWindow.h" 32 #include "DeviceMotionController.h" 33 33 #include "DeviceOrientationController.h" 34 34 #include "DragController.h"
Note: See TracChangeset
for help on using the changeset viewer.