diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-13 12:51:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | d441d6f39bb846989d95bcf5caf387b42414718d (patch) | |
tree | e367e64a75991c554930278175d403c072de6bb8 /Source/WebCore/html/HTMLTableRowsCollection.cpp | |
parent | 0060b2994c07842f4c59de64b5e3e430525c4b90 (diff) | |
download | qtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz |
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit.
Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebCore/html/HTMLTableRowsCollection.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLTableRowsCollection.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/html/HTMLTableRowsCollection.cpp b/Source/WebCore/html/HTMLTableRowsCollection.cpp index 98459366e..5e6d7c732 100644 --- a/Source/WebCore/html/HTMLTableRowsCollection.cpp +++ b/Source/WebCore/html/HTMLTableRowsCollection.cpp @@ -39,17 +39,17 @@ using namespace HTMLNames; static bool isInHead(Element* row) { - return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(theadTag); + return row->parentNode() && toElement(row->parentNode())->hasLocalName(theadTag); } static bool isInBody(Element* row) { - return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(tbodyTag); + return row->parentNode() && toElement(row->parentNode())->hasLocalName(tbodyTag); } static bool isInFoot(Element* row) { - return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(tfootTag); + return row->parentNode() && toElement(row->parentNode())->hasLocalName(tfootTag); } HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(HTMLTableElement* table, HTMLTableRowElement* previous) @@ -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) @@ -166,7 +166,7 @@ Element* HTMLTableRowsCollection::virtualItemAfter(unsigned& offsetInArray, Elem { ASSERT_UNUSED(offsetInArray, !offsetInArray); ASSERT(!previous || (previous->isHTMLElement() && toHTMLElement(previous)->hasLocalName(trTag))); - return rowAfter(static_cast<HTMLTableElement*>(base()), static_cast<HTMLTableRowElement*>(previous)); + return rowAfter(toHTMLTableElement(ownerNode()), static_cast<HTMLTableRowElement*>(previous)); } } |