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

Unified Diff: Source/core/html/HTMLFormControlElement.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/HTMLFormControlElement.cpp
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp
index 3ad09c1b9ffe14b63973f60877eb318aad4bf0be..176372233eb855b08f653ffb99074f5f25340a84 100644
--- a/Source/core/html/HTMLFormControlElement.cpp
+++ b/Source/core/html/HTMLFormControlElement.cpp
@@ -172,7 +172,8 @@ void HTMLFormControlElement::parseAttribute(const QualifiedName& name, const Ato
void HTMLFormControlElement::disabledAttributeChanged()
{
setNeedsWillValidateCheck();
- didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled);
+ pseudoStateChanged(CSSSelector::PseudoDisabled);
+ pseudoStateChanged(CSSSelector::PseudoEnabled);
if (renderer() && renderer()->style()->hasAppearance())
RenderTheme::theme().stateChanged(renderer(), EnabledControlState);
if (isDisabledFormControl() && treeScope().adjustedFocusedElement() == this) {

Powered by Google App Engine
This is Rietveld 408576698