| 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..0d57975c495204bb06476c6b4e19dfc7fb7ce53d 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -1640,12 +1640,8 @@ bool LayoutObject::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* an
|
| return true;
|
|
|
| if (LayoutObject* parent = this->parent()) {
|
| - if (parent->hasOverflowClip()) {
|
| - LayoutBox* parentBox = toLayoutBox(parent);
|
| - parentBox->mapScrollingContentsRectToBoxSpace(rect);
|
| - if (parent != ancestor && !parentBox->applyOverflowClip(rect, visualRectFlags))
|
| - return false;
|
| - }
|
| + if (parent->isBox() && !toLayoutBox(parent)->mapScrollingContentsRectToBoxSpace(rect, parent == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRectFlags))
|
| + return false;
|
|
|
| return parent->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectFlags);
|
| }
|
|
|