| Index: Source/WebCore/history/PageCache.cpp
|
| diff --git a/Source/WebCore/history/PageCache.cpp b/Source/WebCore/history/PageCache.cpp
|
| index d66750012e6fb4f9a7a4c42095fe3baf64208bab..d4b6dc9ed7821330888fd589eab57acde9f5666e 100644
|
| --- a/Source/WebCore/history/PageCache.cpp
|
| +++ b/Source/WebCore/history/PageCache.cpp
|
| @@ -243,7 +243,7 @@ static void logCanCachePageDecision(Page* page)
|
| rejectReasons |= 1 << DisabledPageCache;
|
| }
|
| #if ENABLE(DEVICE_ORIENTATION)
|
| - if (DeviceMotionController::isActiveAt(page)) {
|
| + if (DeviceMotionController::shared().isActiveAt(page)) {
|
| PCLOG(" -Page is using DeviceMotion");
|
| rejectReasons |= 1 << UsesDeviceMotion;
|
| }
|
| @@ -388,7 +388,7 @@ bool PageCache::canCache(Page* page) const
|
| && page->backForward()->isActive()
|
| && page->settings()->usesPageCache()
|
| #if ENABLE(DEVICE_ORIENTATION)
|
| - && !DeviceMotionController::isActiveAt(page)
|
| + && !DeviceMotionController::shared().isActiveAt(page)
|
| && !DeviceOrientationController::isActiveAt(page)
|
| #endif
|
| #if ENABLE(PROXIMITY_EVENTS)
|
|
|