Index: Source/WebCore/css/StyleResolver.cpp |
=================================================================== |
--- Source/WebCore/css/StyleResolver.cpp (revision 119185) |
+++ Source/WebCore/css/StyleResolver.cpp (working copy) |
@@ -1373,6 +1373,9 @@ |
if (element->hasTagName(optionTag)) |
return false; |
+ if (element->hasTagName(optgroupTag) && m_element->disabled() != element->disabled()) |
+ return false; |
+ |
bool isControl = element->isFormControlElement(); |
if (isControl != m_element->isFormControlElement()) |