| Index: Source/core/html/HTMLTableRowsCollection.cpp
|
| diff --git a/Source/core/html/HTMLTableRowsCollection.cpp b/Source/core/html/HTMLTableRowsCollection.cpp
|
| index 3108bc843afe876296a176d6f325f1fa436c3831..3037aff1c61b11b379564fd27e17a59fb3e4e3cf 100644
|
| --- a/Source/core/html/HTMLTableRowsCollection.cpp
|
| +++ b/Source/core/html/HTMLTableRowsCollection.cpp
|
| @@ -154,7 +154,7 @@ HTMLTableRowElement* HTMLTableRowsCollection::lastRow(HTMLTableElement* table)
|
| HTMLTableRowsCollection::HTMLTableRowsCollection(Node* table)
|
| : HTMLCollection(table, TableRows, OverridesItemAfter)
|
| {
|
| - ASSERT(table->hasTagName(tableTag));
|
| + ASSERT(isHTMLTableElement(table));
|
| }
|
|
|
| PassRefPtr<HTMLTableRowsCollection> HTMLTableRowsCollection::create(Node* table, CollectionType)
|
| @@ -165,7 +165,7 @@ PassRefPtr<HTMLTableRowsCollection> HTMLTableRowsCollection::create(Node* table,
|
| Element* HTMLTableRowsCollection::virtualItemAfter(unsigned& offsetInArray, Element* previous) const
|
| {
|
| ASSERT_UNUSED(offsetInArray, !offsetInArray);
|
| - return rowAfter(static_cast<HTMLTableElement*>(ownerNode()), toHTMLTableRowElement(previous));
|
| + return rowAfter(toHTMLTableElement(ownerNode()), toHTMLTableRowElement(previous));
|
| }
|
|
|
| }
|
|
|