Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index 3ad09c1b9ffe14b63973f60877eb318aad4bf0be..176372233eb855b08f653ffb99074f5f25340a84 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -172,7 +172,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) { |