Changing pseudoClass (:disabled) should cause distribution.
[WebKit-https.git] / Source / WebCore / html / HTMLFormControlElement.cpp
index cf16f43..7b4ae3e 100644 (file)
@@ -151,6 +151,7 @@ void HTMLFormControlElement::disabledAttributeChanged()
 {
     setNeedsWillValidateCheck();
     setNeedsStyleRecalc();
+    invalidateParentDistributionIfNecessary(this, SelectRuleFeatureSet::RuleFeatureDisabled);
     if (renderer() && renderer()->style()->hasAppearance())
         renderer()->theme()->stateChanged(renderer(), EnabledState);
 }