Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
index 19ac47476b6db7945f4398c23c95b8de0474d753..b8a5ed449df5133bab6be3ce2edbed67f2478998 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
@@ -1213,11 +1213,8 @@ bool LayoutInline::mapToVisualRectInAncestorSpace( |
LayoutBox* containerBox = |
container->isBox() ? toLayoutBox(container) : nullptr; |
- if (containerBox && |
- !containerBox->mapScrollingContentsRectToBoxSpace( |
- rect, container == ancestor ? ApplyNonScrollOverflowClip |
- : ApplyOverflowClip, |
- visualRectFlags)) |
+ if (containerBox && container != ancestor && |
+ !containerBox->mapScrollingContentsRectToBoxSpace(rect, visualRectFlags)) |
return false; |
// TODO(wkorman): Generalize Ruby specialization and/or document more clearly. |