| Index: Source/core/html/HTMLTableSectionElement.cpp
|
| diff --git a/Source/core/html/HTMLTableSectionElement.cpp b/Source/core/html/HTMLTableSectionElement.cpp
|
| index 31a0f3ee7dbfcf68f3ae766b237d619fa5dd159b..1820cabd68610e8b98c517202f4d83df74098afb 100644
|
| --- a/Source/core/html/HTMLTableSectionElement.cpp
|
| +++ b/Source/core/html/HTMLTableSectionElement.cpp
|
| @@ -97,10 +97,8 @@ void HTMLTableSectionElement::deleteRow(int index, ExceptionState& exceptionStat
|
| int HTMLTableSectionElement::numRows() const
|
| {
|
| int rowCount = 0;
|
| - for (const Element* child = ElementTraversal::firstWithin(*this); child; child = ElementTraversal::nextSibling(*child)) {
|
| - if (child->hasTagName(trTag))
|
| - ++rowCount;
|
| - }
|
| + for (const HTMLTableRowElement* row = Traversal<HTMLTableRowElement>::firstChild(*this); row; row = Traversal<HTMLTableRowElement>::nextSibling(*row))
|
| + ++rowCount;
|
| return rowCount;
|
| }
|
|
|
|
|