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