| Index: third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp b/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
|
| index 8fa138da4e62d8a7c9b4520a4bfbaf3c0c563a75..15d79bea17c74173b4a917ba07485a014883d267 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/TextControlInnerElements.cpp
|
| @@ -89,6 +89,9 @@
|
| style->SetUserModify(EUserModify::kReadOnly);
|
| style->SetUnique();
|
|
|
| + if (const ComputedStyle* parent_style = ParentComputedStyle())
|
| + StyleAdjuster::AdjustStyleForAlignment(*style, *parent_style);
|
| +
|
| return style.Release();
|
| }
|
|
|
| @@ -146,6 +149,8 @@
|
| // Using StyleAdjuster::adjustComputedStyle updates unwanted style. We'd like
|
| // to apply only editing-related and alignment-related.
|
| StyleAdjuster::AdjustStyleForEditing(*inner_editor_style);
|
| + if (const ComputedStyle* parent_style = ParentComputedStyle())
|
| + StyleAdjuster::AdjustStyleForAlignment(*inner_editor_style, *parent_style);
|
| return inner_editor_style.Release();
|
| }
|
|
|
|
|