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() |