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 5f0e1c09483469573970f453e321b5aaa6cf92fb..9c5dfc708b03250f493d53ce53bcf6f85f5eba69 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -853,7 +853,7 @@ void CompositedLayerMapping::updateOverflowControlsHostLayerGeometry(const Paint |
} else { |
// The controls are in the same 2D space as the compositing container, so we can map them into the space of the container. |
TransformState transformState(TransformState::ApplyTransformDirection, FloatPoint()); |
- m_owningLayer.layoutObject()->mapLocalToContainer(compositingStackingContext->layoutObject(), transformState, ApplyContainerFlip); |
+ m_owningLayer.layoutObject()->mapLocalToAncestor(compositingStackingContext->layoutObject(), transformState, ApplyContainerFlip); |
transformState.flatten(); |
hostLayerPosition = LayoutPoint(transformState.lastPlanarPoint()); |
if (PaintLayerScrollableArea* scrollableArea = compositingStackingContext->scrollableArea()) |
@@ -2278,7 +2278,7 @@ IntRect CompositedLayerMapping::recomputeInterestRect(const GraphicsLayer* graph |
LayoutView* rootView = anchorLayoutObject->view(); |
while (rootView->frame()->ownerLayoutObject()) |
rootView = rootView->frame()->ownerLayoutObject()->view(); |
- anchorLayoutObject->mapToVisibleRectInContainerSpace(rootView, visibleContentRect, 0); |
+ anchorLayoutObject->mapToVisibleRectInAncestorSpace(rootView, visibleContentRect, 0); |
visibleContentRect.intersect(LayoutRect(rootView->frameView()->visibleContentRect())); |
// Map the visible content rect from screen space to local graphics layer space. |