| 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(
|
|
|