Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index 87d5169233044306820aa9639b7f1374b34190fa..de47b2af61fe06156d33abb622a8116abf237d3c 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -846,7 +846,6 @@ void HTMLInputElement::setChecked(bool nowChecked, TextFieldEventBehavior eventB |
RefPtrWillBeRawPtr<HTMLInputElement> protector(this); |
m_reflectsCheckedAttribute = false; |
m_isChecked = nowChecked; |
- setNeedsStyleRecalc(SubtreeStyleChange); |
if (RadioButtonGroupScope* scope = radioButtonGroupScope()) |
scope->updateCheckedState(this); |
@@ -875,7 +874,7 @@ void HTMLInputElement::setChecked(bool nowChecked, TextFieldEventBehavior eventB |
dispatchFormControlChangeEvent(); |
} |
- didAffectSelector(AffectedSelectorChecked); |
+ pseudoStateChanged(CSSSelector::PseudoChecked); |
} |
void HTMLInputElement::setIndeterminate(bool newValue) |
@@ -885,7 +884,7 @@ void HTMLInputElement::setIndeterminate(bool newValue) |
m_isIndeterminate = newValue; |
- didAffectSelector(AffectedSelectorIndeterminate); |
+ pseudoStateChanged(CSSSelector::PseudoIndeterminate); |
if (renderer() && renderer()->style()->hasAppearance()) |
RenderTheme::theme().stateChanged(renderer(), CheckedControlState); |