| Index: third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| index 819d69611709e83ee6df427fc9331337c5f3c5f7..c27e8e09b973746e630ecc75bfb7f8f4544615e8 100644
|
| --- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| +++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
|
| @@ -37,7 +37,6 @@
|
| #include "core/events/MouseEvent.h"
|
| #include "core/events/TouchEvent.h"
|
| #include "core/events/WheelEvent.h"
|
| -#include "core/frame/FrameHost.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/VisualViewport.h"
|
| #include "core/layout/api/LayoutItem.h"
|
| @@ -70,11 +69,8 @@ FloatPoint frameTranslation(const FrameViewBase* frameViewBase) {
|
| if (rootView) {
|
| scale = rootView->inputEventsScaleFactor();
|
| offset = FloatSize(rootView->inputEventsOffsetForEmulation());
|
| - visualViewport = flooredIntPoint(rootView->page()
|
| - ->frameHost()
|
| - .visualViewport()
|
| - .visibleRect()
|
| - .location());
|
| + visualViewport = flooredIntPoint(
|
| + rootView->page()->visualViewport().visibleRect().location());
|
| overscrollOffset = rootView->page()->chromeClient().elasticOverscroll();
|
| }
|
| }
|
|
|