Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp

Issue 2730573003: Moved FrameHost::m_visualViewport to Page (Closed)
Patch Set: Fixed some compile errors on mac and android Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698