Changing pseudoClass (:disabled) should cause distribution.
[WebKit-https.git] / Source / WebCore / html / HTMLOptionElement.cpp
index d169173..38edc3e 100644 (file)
@@ -203,6 +203,7 @@ void HTMLOptionElement::parseAttribute(const Attribute& attribute)
         m_disabled = !attribute.isNull();
         if (oldDisabled != m_disabled) {
             setNeedsStyleRecalc();
         m_disabled = !attribute.isNull();
         if (oldDisabled != m_disabled) {
             setNeedsStyleRecalc();
+            invalidateParentDistributionIfNecessary(this, SelectRuleFeatureSet::RuleFeatureDisabled);
             if (renderer() && renderer()->style()->hasAppearance())
                 renderer()->theme()->stateChanged(renderer(), EnabledState);
         }
             if (renderer() && renderer()->style()->hasAppearance())
                 renderer()->theme()->stateChanged(renderer(), EnabledState);
         }