Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index 8f0ef5f526aed7dea244dbe5145e3f72863c71e8..4972a38a1bd7908f3be7cff35fbaaf736b078e9a 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -171,7 +171,8 @@ void HTMLFormControlElement::parseAttribute(const QualifiedName& name, const Ato |
void HTMLFormControlElement::disabledAttributeChanged() |
{ |
setNeedsWillValidateCheck(); |
- didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled); |
+ pseudoStateChanged(CSSSelector::PseudoDisabled); |
+ pseudoStateChanged(CSSSelector::PseudoEnabled); |
if (renderer() && renderer()->style()->hasAppearance()) |
RenderTheme::theme().stateChanged(renderer(), EnabledControlState); |
if (isDisabledFormControl() && treeScope().adjustedFocusedElement() == this) { |