Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1166)

Unified Diff: Source/core/html/HTMLInputElement.cpp

Issue 540533004: Use style invalidation for more pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 5afcb218a6af313fca1a3ac1b048ca26c9e4ed91..bf34fe32cf439241f72bed453e979982e96573ab 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -839,7 +839,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);
@@ -868,7 +867,7 @@ void HTMLInputElement::setChecked(bool nowChecked, TextFieldEventBehavior eventB
dispatchFormControlChangeEvent();
}
- didAffectSelector(AffectedSelectorChecked);
+ pseudoStateChanged(CSSSelector::PseudoChecked);
}
void HTMLInputElement::setIndeterminate(bool newValue)
@@ -878,7 +877,7 @@ void HTMLInputElement::setIndeterminate(bool newValue)
m_isIndeterminate = newValue;
- didAffectSelector(AffectedSelectorIndeterminate);
+ pseudoStateChanged(CSSSelector::PseudoIndeterminate);
if (renderer() && renderer()->style()->hasAppearance())
RenderTheme::theme().stateChanged(renderer(), CheckedControlState);

Powered by Google App Engine
This is Rietveld 408576698