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); |