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

Unified Diff: Source/core/html/HTMLOptGroupElement.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
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLOptionElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLOptGroupElement.cpp
diff --git a/Source/core/html/HTMLOptGroupElement.cpp b/Source/core/html/HTMLOptGroupElement.cpp
index 4aed5bce86036ba1454877af90a3007cf8f81141..b980d732bd56f4092e80e6d8018ef3d0c0c855f7 100644
--- a/Source/core/html/HTMLOptGroupElement.cpp
+++ b/Source/core/html/HTMLOptGroupElement.cpp
@@ -69,10 +69,12 @@ void HTMLOptGroupElement::parseAttribute(const QualifiedName& name, const Atomic
HTMLElement::parseAttribute(name, value);
recalcSelectOptions();
- if (name == disabledAttr)
- didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled);
- else if (name == labelAttr)
+ if (name == disabledAttr) {
+ pseudoStateChanged(CSSSelector::PseudoDisabled);
+ pseudoStateChanged(CSSSelector::PseudoEnabled);
+ } else if (name == labelAttr) {
updateGroupLabel();
+ }
}
void HTMLOptGroupElement::recalcSelectOptions()
« no previous file with comments | « Source/core/html/HTMLInputElement.cpp ('k') | Source/core/html/HTMLOptionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698