Index: Source/core/html/HTMLFieldSetElement.cpp |
diff --git a/Source/core/html/HTMLFieldSetElement.cpp b/Source/core/html/HTMLFieldSetElement.cpp |
index 7973ee6a5a1099ef05b64eef4a7689cc9939bfb2..130d800e40d4883bb9d5bc6ba3209b4f3c2a3c5b 100644 |
--- a/Source/core/html/HTMLFieldSetElement.cpp |
+++ b/Source/core/html/HTMLFieldSetElement.cpp |
@@ -67,7 +67,7 @@ void HTMLFieldSetElement::disabledAttributeChanged() |
void HTMLFieldSetElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |
{ |
HTMLFormControlElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); |
- for (Element* element = ElementTraversal::firstWithin(this); element; element = ElementTraversal::nextSkippingChildren(element, this)) { |
+ for (Element* element = ElementTraversal::firstWithin(this); element; element = ElementTraversal::nextSkippingChildren(*element, this)) { |
if (element->hasTagName(legendTag)) |
invalidateDisabledStateUnder(element); |
} |
@@ -91,7 +91,7 @@ RenderObject* HTMLFieldSetElement::createRenderer(RenderStyle*) |
HTMLLegendElement* HTMLFieldSetElement::legend() const |
{ |
- for (Element* child = ElementTraversal::firstWithin(this); child; child = ElementTraversal::nextSkippingChildren(child, this)) { |
+ for (Element* child = ElementTraversal::firstWithin(this); child; child = ElementTraversal::nextSkippingChildren(*child, this)) { |
if (child->hasTagName(legendTag)) |
return toHTMLLegendElement(child); |
} |