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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.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/layout/compositing/CompositedLayerMapping.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
index b7ed656d74a80e1f7942872ad72f305004e7f4b1..8dd0dbed3788300c03c57402df6fc5888679721f 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1590,13 +1590,10 @@ void CompositedLayerMapping::updateInternalHierarchy() {
// TODO(pdr): Ensure painting uses the correct GraphicsLayer when root layer
// scrolls is enabled. crbug.com/638719
if (m_isMainFrameLayoutViewLayer &&
- !RuntimeEnabledFeatures::slimmingPaintV2Enabled())
- bottomLayer = layoutObject()
- .frame()
- ->page()
- ->frameHost()
- .visualViewport()
- .containerLayer();
+ !RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ bottomLayer =
+ layoutObject().frame()->page()->visualViewport().containerLayer();
+ }
updateBottomLayer(m_overflowControlsAncestorClippingLayer.get());
updateBottomLayer(m_overflowControlsHostLayer.get());
if (m_layerForHorizontalScrollbar)

Powered by Google App Engine
This is Rietveld 408576698