| 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 d5eb971ba7d9a06f8b194a01ec05bd084c1cf0b2..54a4376db612ada535af3934978f9120181067a4 100644
|
| --- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
|
| @@ -7,7 +7,6 @@
|
| #include "core/dom/Document.h"
|
| #include "core/dom/TaskRunnerHelper.h"
|
| #include "core/events/Event.h"
|
| -#include "core/frame/FrameHost.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/page/ChromeClient.h"
|
| @@ -85,8 +84,8 @@ WebScreenOrientationType ScreenOrientationControllerImpl::computeOrientation(
|
| void ScreenOrientationControllerImpl::updateOrientation() {
|
| DCHECK(m_orientation);
|
| DCHECK(frame());
|
| - DCHECK(frame()->host());
|
| - ChromeClient& chromeClient = frame()->host()->chromeClient();
|
| + DCHECK(frame()->page());
|
| + ChromeClient& chromeClient = frame()->page()->chromeClient();
|
| WebScreenInfo screenInfo = chromeClient.screenInfo();
|
| WebScreenOrientationType orientationType = screenInfo.orientationType;
|
| if (orientationType == WebScreenOrientationUndefined) {
|
| @@ -120,12 +119,12 @@ void ScreenOrientationControllerImpl::pageVisibilityChanged() {
|
| return;
|
|
|
| DCHECK(frame());
|
| - DCHECK(frame()->host());
|
| + DCHECK(frame()->page());
|
|
|
| // The orientation type and angle are tied in a way that if the angle has
|
| // changed, the type must have changed.
|
| unsigned short currentAngle =
|
| - frame()->host()->chromeClient().screenInfo().orientationAngle;
|
| + frame()->page()->chromeClient().screenInfo().orientationAngle;
|
|
|
| // FIXME: sendOrientationChangeEvent() currently send an event all the
|
| // children of the frame, so it should only be called on the frame on
|
|
|