Index: Source/core/html/HTMLOptionElement.cpp |
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp |
index 2406e7cfe6401f11fc3ba0a87b98a948bc4f3241..c2b1e9a6cae08bc49da644529c188fb8f7821145 100644 |
--- a/Source/core/html/HTMLOptionElement.cpp |
+++ b/Source/core/html/HTMLOptionElement.cpp |
@@ -183,7 +183,8 @@ void HTMLOptionElement::parseAttribute(const QualifiedName& name, const AtomicSt |
bool oldDisabled = m_disabled; |
m_disabled = !value.isNull(); |
if (oldDisabled != m_disabled) { |
- didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled); |
+ pseudoStateChanged(CSSSelector::PseudoDisabled); |
+ pseudoStateChanged(CSSSelector::PseudoEnabled); |
if (renderer() && renderer()->style()->hasAppearance()) |
RenderTheme::theme().stateChanged(renderer(), EnabledControlState); |
} |
@@ -243,7 +244,7 @@ void HTMLOptionElement::setSelectedState(bool selected) |
return; |
m_isSelected = selected; |
- didAffectSelector(AffectedSelectorChecked); |
+ pseudoStateChanged(CSSSelector::PseudoChecked); |
if (HTMLSelectElement* select = ownerSelectElement()) |
select->invalidateSelectedItems(); |