| Index: third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| index 54d22d6795a6220ec8c75e90eb70ab7ad54e55d4..d4d2c4970daac94905d7329e3f59c3ac9be44254 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
|
| @@ -172,7 +172,8 @@ void HTMLFormControlElement::parseAttribute(const QualifiedName& name, const Ato
|
| m_isReadOnly = !value.isNull();
|
| if (wasReadOnly != m_isReadOnly) {
|
| setNeedsWillValidateCheck();
|
| - setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::fromAttribute(name));
|
| + pseudoStateChanged(CSSSelector::PseudoReadOnly);
|
| + pseudoStateChanged(CSSSelector::PseudoReadWrite);
|
| if (layoutObject())
|
| LayoutTheme::theme().controlStateChanged(*layoutObject(), ReadOnlyControlState);
|
| }
|
|
|