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