| 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 c8fa313b17779d9aa155ee519dd6f282b9aba046..3bb85b57f829de62d28bb7af3e616142577908f7 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -5177,6 +5177,11 @@ LayoutPoint LayoutBox::flipForWritingModeForChild(
|
| }
|
|
|
| LayoutBox* LayoutBox::locationContainer() const {
|
| + // Location of a non-root SVG object derived from LayoutBox should not be
|
| + // affected by writing-mode of the containing box (SVGRoot).
|
| + if (isSVG() && !isSVGRoot())
|
| + return nullptr;
|
| +
|
| // Normally the box's location is relative to its containing box.
|
| LayoutObject* container = this->container();
|
| while (container && !container->isBox())
|
|
|