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

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

Issue 2750463005: Remove top controls clipping adjustment for document.rootScroller (Closed)
Patch Set: Rebase 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 c1a9227de41f0a4bce40b27c08715b0ec626bb8c..ea58bb6bbde36041d04498f1841aa8cab2bf766d 100644
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
@@ -1408,16 +1408,6 @@ void CompositedLayerMapping::updateScrollingLayerGeometry(
IntRect overflowClipRect =
pixelSnappedIntRect(layoutBox.overflowClipRect(LayoutPoint()));
- const TopDocumentRootScrollerController& globalRootScrollerController =
- layoutBox.document().page()->globalRootScrollerController();
-
- if (&m_owningLayer == globalRootScrollerController.rootScrollerPaintLayer()) {
- LayoutRect clipRect =
- layoutBox.document().layoutView()->overflowClipRect(LayoutPoint());
- 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