Index: Source/core/html/HTMLTableRowElement.cpp |
diff --git a/Source/core/html/HTMLTableRowElement.cpp b/Source/core/html/HTMLTableRowElement.cpp |
index 34059fb04ea1b469a2c3edb6a906aa51ba69d2eb..77a5410b84032a50b1eb2a9d15abd33c3b085330 100644 |
--- a/Source/core/html/HTMLTableRowElement.cpp |
+++ b/Source/core/html/HTMLTableRowElement.cpp |
@@ -80,7 +80,7 @@ int HTMLTableRowElement::rowIndex() const |
} |
} |
- for (HTMLElement* child = Traversal<HTMLElement>::firstWithin(*table); child; child = Traversal<HTMLElement>::nextSibling(*child)) { |
+ for (HTMLElement* child = Traversal<HTMLElement>::firstChild(*table); child; child = Traversal<HTMLElement>::nextSibling(*child)) { |
if (child->hasTagName(tbodyTag)) { |
HTMLTableSectionElement* section = toHTMLTableSectionElement(child); |
for (HTMLTableRowElement* row = Traversal<HTMLTableRowElement>::firstChild(*section); row; row = Traversal<HTMLTableRowElement>::nextSibling(*row)) { |