Index: third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
index c2cac3893228cd04a9759889e6b029b482cab3dc..7621248b5e277c8cbf02522cb478a92fcb16eab5 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.cpp |
@@ -434,7 +434,7 @@ LayoutRect LayoutReplaced::selectionRectForPaintInvalidation(const LayoutBoxMode |
if (rect.isEmpty()) |
return rect; |
- mapToVisibleRectInContainerSpace(paintInvalidationContainer, rect, 0); |
+ mapToVisibleRectInAncestorSpace(paintInvalidationContainer, rect, 0); |
// FIXME: groupedMapping() leaks the squashing abstraction. |
if (paintInvalidationContainer->layer()->groupedMapping()) |
PaintLayer::mapRectToPaintBackingCoordinates(paintInvalidationContainer, rect); |