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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2499853002: Fixed clip resize for document.rootScroller with inertTopControls (Closed)
Patch Set: +Test Created 4 years, 1 month 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 ebe400f573dabc4f76ab52aa00f487e94387c851..8faebf5177c3b564b216d9a8d34c447127f7c362 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1235,6 +1235,15 @@ void CompositedLayerMapping::updateScrollingLayerGeometry(
LayoutBox* layoutBox = toLayoutBox(layoutObject());
IntRect overflowClipRect =
pixelSnappedIntRect(layoutBox->overflowClipRect(LayoutPoint()));
+
+ if (m_owningLayer.isRootScroller()) {
+ overflowClipRect.setSize(
+ flooredIntSize(layoutBox->document()
+ .layoutView()
+ ->overflowClipRect(LayoutPoint())
+ .size()));
+ }
+
FloatPoint scrollPosition =
m_owningLayer.getScrollableArea()->scrollPosition();
m_scrollingLayer->setPosition(FloatPoint(

Powered by Google App Engine
This is Rietveld 408576698