| Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
|
| diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
|
| index 52457c226b45a0da8dbed307dd9a8a86d55a01d4..8e3c8624cf8f2ca630895aeb18f1751132880b92 100644
|
| --- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
|
| +++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
|
| @@ -106,7 +106,7 @@ void ScreenOrientationController::updateOrientation()
|
|
|
| bool ScreenOrientationController::isActiveAndVisible() const
|
| {
|
| - return m_orientation && frame() && page() && page()->visibilityState() == PageVisibilityStateVisible;
|
| + return m_orientation && frame() && page() && page()->isPageVisible();
|
| }
|
|
|
| void ScreenOrientationController::pageVisibilityChanged()
|
| @@ -230,7 +230,7 @@ void ScreenOrientationController::willDetachFrameHost()
|
|
|
| void ScreenOrientationController::notifyDispatcher()
|
| {
|
| - if (m_orientation && page()->visibilityState() == PageVisibilityStateVisible)
|
| + if (m_orientation && page()->isPageVisible())
|
| startUpdating();
|
| else
|
| stopUpdating();
|
|
|