| Index: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| index e0a0d72d5c18bff5f7e2d48a59ad9c489de250d7..aff5a7e32eb2a4fad4eb8a2269433fe933ad360c 100644
|
| --- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| +++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
|
| @@ -235,7 +235,7 @@ void ScrollingCoordinator::updateAfterCompositingChangeIfNeeded() {
|
| Element* fullscreenElement =
|
| Fullscreen::fullscreenElementFrom(*mainFrameDocument);
|
| WebLayer* visualViewportScrollLayer =
|
| - toWebLayer(m_page->frameHost().visualViewport().scrollLayer());
|
| + toWebLayer(m_page->visualViewport().scrollLayer());
|
|
|
| if (visualViewportScrollLayer) {
|
| if (fullscreenElement &&
|
| @@ -485,8 +485,7 @@ bool ScrollingCoordinator::scrollableAreaScrollLayerDidChange(
|
| GraphicsLayer* scrollLayer = scrollableArea->layerForScrolling();
|
|
|
| if (scrollLayer) {
|
| - bool isForVisualViewport =
|
| - scrollableArea == &m_page->frameHost().visualViewport();
|
| + bool isForVisualViewport = scrollableArea == &m_page->visualViewport();
|
| scrollLayer->setScrollableArea(scrollableArea, isForVisualViewport);
|
| }
|
|
|
| @@ -840,8 +839,7 @@ void ScrollingCoordinator::setShouldUpdateScrollLayerPositionOnMainThread(
|
| !m_page->deprecatedLocalMainFrame()->view())
|
| return;
|
|
|
| - GraphicsLayer* visualViewportLayer =
|
| - m_page->frameHost().visualViewport().scrollLayer();
|
| + GraphicsLayer* visualViewportLayer = m_page->visualViewport().scrollLayer();
|
| WebLayer* visualViewportScrollLayer = toWebLayer(visualViewportLayer);
|
| GraphicsLayer* layer = m_page->deprecatedLocalMainFrame()
|
| ->view()
|
|
|