| 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 25fcb4d7e0fa46ffc99ef49b671101de3b860f0c..3fac8ec22d135c2cf42a42abf8e21f7bac153998 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -1101,12 +1101,9 @@ bool LayoutInline::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
|
| // FIXME: We ignore the lightweight clipping rect that controls use, since if |o| is in mid-layout,
|
| // its controlClipRect will be wrong. For overflow clip we use the values cached by the layer.
|
| rect.setLocation(topLeft);
|
| - if (container->hasOverflowClip()) {
|
| - LayoutBox* containerBox = toLayoutBox(container);
|
| - containerBox->mapScrollingContentsRectToBoxSpace(rect);
|
| - if (container != ancestor && !containerBox->applyOverflowClip(rect, visualRectFlags))
|
| - return false;
|
| - }
|
| +
|
| + if (container->isBox() && !toLayoutBox(container)->mapScrollingContentsRectToBoxSpace(rect, container == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRectFlags))
|
| + return false;
|
|
|
| if (ancestorSkipped) {
|
| // If the paintInvalidationContainer is below o, then we need to map the rect into paintInvalidationContainer's coordinates.
|
|
|