Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
index 8a378d6480d9d4b66ca7bb03b504928f45dff90a..3933915728b822c0423cb2319c81f8c28f2793f6 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -1643,8 +1643,10 @@ bool LayoutObject::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an |
if (parent->hasOverflowClip()) { |
LayoutBox* parentBox = toLayoutBox(parent); |
parentBox->mapScrollingContentsRectToBoxSpace(rect); |
- if (parent != ancestor && !parentBox->applyOverflowClip(rect, visualRectFlags)) |
- return false; |
+ if (parent != ancestor || !parentBox->scrollsOverflow()) { |
+ if (!parentBox->applyOverflowClip(rect, visualRectFlags)) |
+ return false; |
+ } |
} |
return parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectFlags); |