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

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

Issue 2623213002: Expand PaintLayer clip to account for hidden URL bar with document.rootScroller (Closed)
Patch Set: Rebase Created 3 years, 11 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 e84890844671dbaf9726b46c093f3c94278d9702..33cdde0f4b7acc850813ae9d7425a26abcc9911b 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1307,16 +1307,6 @@ void CompositedLayerMapping::updateScrollingLayerGeometry(
IntRect overflowClipRect =
pixelSnappedIntRect(layoutBox->overflowClipRect(LayoutPoint()));
- const TopDocumentRootScrollerController& globalRootScrollerController =
- layoutBox->document().frameHost()->globalRootScrollerController();
-
- if (&m_owningLayer == globalRootScrollerController.rootScrollerPaintLayer()) {
- LayoutRect clipRect =
- layoutBox->document().layoutView()->overflowClipRect(LayoutPoint());
chrishtr 2017/01/21 02:06:47 Why can this now be removed?
- DCHECK(clipRect.size() == LayoutSize(pixelSnappedIntRect(clipRect).size()));
- overflowClipRect.setSize(pixelSnappedIntRect(clipRect).size());
- }
-
// When a m_childTransformLayer exists, local content offsets for the
// m_scrollingLayer have already been applied. Otherwise, we apply them here.
IntSize localContentOffset(0, 0);

Powered by Google App Engine
This is Rietveld 408576698