| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index fb3c6cb78c8784e627960e94620930bb96a59171..66b2663d093aa85f160b992fc013db6dec67e8e5 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -5073,8 +5073,8 @@ LayoutRect LayoutBox::visualOverflowRectForPropagation(
|
| // We are putting ourselves into our parent's coordinate space. If there is a
|
| // flipped block mismatch in a particular axis, then we have to flip the rect
|
| // along that axis.
|
| - if (style()->getWritingMode() == RightToLeftWritingMode ||
|
| - parentStyle.getWritingMode() == RightToLeftWritingMode)
|
| + if (isFlippedBlocksWritingMode(style()->getWritingMode()) ||
|
| + isFlippedBlocksWritingMode(parentStyle.getWritingMode()))
|
| rect.setX(size().width() - rect.maxX());
|
|
|
| return rect;
|
| @@ -5129,8 +5129,8 @@ LayoutRect LayoutBox::layoutOverflowRectForPropagation(
|
| // We are putting ourselves into our parent's coordinate space. If there is a
|
| // flipped block mismatch in a particular axis, then we have to flip the rect
|
| // along that axis.
|
| - if (style()->getWritingMode() == RightToLeftWritingMode ||
|
| - parentStyle.getWritingMode() == RightToLeftWritingMode)
|
| + if (isFlippedBlocksWritingMode(style()->getWritingMode()) ||
|
| + isFlippedBlocksWritingMode(parentStyle.getWritingMode()))
|
| rect.setX(size().width() - rect.maxX());
|
|
|
| return rect;
|
|
|