Index: Source/core/html/HTMLFieldSetElement.cpp |
diff --git a/Source/core/html/HTMLFieldSetElement.cpp b/Source/core/html/HTMLFieldSetElement.cpp |
index b39c72305ad3d30a44dcff99162d4c6a0427fac8..8f28236acd60c19270c7f30730fffb33f373483b 100644 |
--- a/Source/core/html/HTMLFieldSetElement.cpp |
+++ b/Source/core/html/HTMLFieldSetElement.cpp |
@@ -60,10 +60,8 @@ void HTMLFieldSetElement::trace(Visitor* visitor) |
void HTMLFieldSetElement::invalidateDisabledStateUnder(Element& base) |
{ |
- for (Element* element = ElementTraversal::firstWithin(base); element; element = ElementTraversal::next(*element, &base)) { |
- if (element->isFormControlElement()) |
- toHTMLFormControlElement(element)->ancestorDisabledStateWasChanged(); |
- } |
+ for (HTMLFormControlElement* element = Traversal<HTMLFormControlElement>::firstWithin(base); element; element = Traversal<HTMLFormControlElement>::next(*element, &base)) |
+ element->ancestorDisabledStateWasChanged(); |
} |
void HTMLFieldSetElement::disabledAttributeChanged() |