| 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 56dbaadc81476b59741fea9b341ddb020ba49cbe..7941b5bc8e40e0d3c53f75701a43829dfc31e01d 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -1889,13 +1889,18 @@ void LayoutObject::propagateStyleToAnonymousChildren()
|
| }
|
| }
|
|
|
| -void LayoutObject::setStyleWithWritingModeOfParent(PassRefPtr<ComputedStyle> style)
|
| +void LayoutObject::setStyleWithWritingModeOf(PassRefPtr<ComputedStyle> style, LayoutObject* parent)
|
| {
|
| - if (parent())
|
| - style->setWritingMode(parent()->styleRef().getWritingMode());
|
| + if (parent)
|
| + style->setWritingMode(parent->styleRef().getWritingMode());
|
| setStyle(style);
|
| }
|
|
|
| +void LayoutObject::setStyleWithWritingModeOfParent(PassRefPtr<ComputedStyle> style)
|
| +{
|
| + setStyleWithWritingModeOf(style, parent());
|
| +}
|
| +
|
| void LayoutObject::addChildWithWritingModeOfParent(LayoutObject* newChild, LayoutObject* beforeChild)
|
| {
|
| if (newChild->mutableStyleRef().setWritingMode(styleRef().getWritingMode())
|
|
|