| Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
|
| index 6414baef66c55afa760a044a6f1d2ab093455023..225d9fd589e9e2793c3aeeabc8026c2a14e9eb25 100644
|
| --- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
|
| @@ -157,7 +157,7 @@ void ScreenOrientationControllerImpl::notifyOrientationChanged() {
|
| void ScreenOrientationControllerImpl::setOrientation(
|
| ScreenOrientation* orientation) {
|
| m_orientation = orientation;
|
| - if (m_orientation)
|
| + if (isActiveAndVisible())
|
| updateOrientation();
|
| notifyDispatcher();
|
| }
|
| @@ -208,9 +208,9 @@ bool ScreenOrientationControllerImpl::hasLastData() {
|
| return true;
|
| }
|
|
|
| -void ScreenOrientationControllerImpl::frameDestroyed() {
|
| +void ScreenOrientationControllerImpl::contextDestroyed() {
|
| m_client = nullptr;
|
| - DOMWindowProperty::frameDestroyed();
|
| + DOMWindowProperty::contextDestroyed();
|
| m_activeLock = false;
|
| }
|
|
|
|
|