| Index: third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp b/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
|
| index 7b2c745ec0c9cd13bccbb23439af1a06a492916e..71eaed4485fc3c0f22d74b2b81195c701b3c1a1b 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/TextControlInnerElements.cpp
|
| @@ -27,6 +27,7 @@
|
| #include "core/html/shadow/TextControlInnerElements.h"
|
|
|
| #include "core/HTMLNames.h"
|
| +#include "core/css/resolver/StyleAdjuster.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/NodeComputedStyle.h"
|
| #include "core/events/MouseEvent.h"
|
| @@ -142,7 +143,11 @@ PassRefPtr<ComputedStyle> TextControlInnerEditorElement::customStyleForLayoutObj
|
| if (!parentLayoutObject || !parentLayoutObject->isTextControl())
|
| return originalStyleForLayoutObject();
|
| LayoutTextControlItem textControlLayoutItem = LayoutTextControlItem(toLayoutTextControl(parentLayoutObject));
|
| - return textControlLayoutItem.createInnerEditorStyle(textControlLayoutItem.styleRef());
|
| + RefPtr<ComputedStyle> innerEditorStyle = textControlLayoutItem.createInnerEditorStyle(textControlLayoutItem.styleRef());
|
| + // Using StyleAdjuster::adjustComputedStyle updates unwanted style. We'd like
|
| + // to apply only editing-related.
|
| + StyleAdjuster::adjustStyleForEditing(*innerEditorStyle);
|
| + return innerEditorStyle.release();
|
| }
|
|
|
| // ----------------------------
|
|
|