summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLTableRowsCollection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLTableRowsCollection.cpp')
-rw-r--r--WebCore/html/HTMLTableRowsCollection.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/WebCore/html/HTMLTableRowsCollection.cpp b/WebCore/html/HTMLTableRowsCollection.cpp
index b38c271..20143d9 100644
--- a/WebCore/html/HTMLTableRowsCollection.cpp
+++ b/WebCore/html/HTMLTableRowsCollection.cpp
@@ -39,17 +39,17 @@ using namespace HTMLNames;
static bool isInHead(Element* row)
{
- return row->parent() && static_cast<Element*>(row->parent())->hasLocalName(theadTag);
+ return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(theadTag);
}
static bool isInBody(Element* row)
{
- return row->parent() && static_cast<Element*>(row->parent())->hasLocalName(tbodyTag);
+ return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(tbodyTag);
}
static bool isInFoot(Element* row)
{
- return row->parent() && static_cast<Element*>(row->parent())->hasLocalName(tfootTag);
+ return row->parentNode() && static_cast<Element*>(row->parentNode())->hasLocalName(tfootTag);
}
HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(HTMLTableElement* table, HTMLTableRowElement* previous)
@@ -58,7 +58,7 @@ HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(HTMLTableElement* table,
// Start by looking for the next row in this section.
// Continue only if there is none.
- if (previous && previous->parent() != table) {
+ if (previous && previous->parentNode() != table) {
for (child = previous->nextSibling(); child; child = child->nextSibling()) {
if (child->hasTagName(trTag))
return static_cast<HTMLTableRowElement*>(child);
@@ -69,7 +69,7 @@ HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(HTMLTableElement* table,
if (!previous)
child = table->firstChild();
else if (isInHead(previous))
- child = previous->parent()->nextSibling();
+ child = previous->parentNode()->nextSibling();
for (; child; child = child->nextSibling()) {
if (child->hasTagName(theadTag)) {
for (Node* grandchild = child->firstChild(); grandchild; grandchild = grandchild->nextSibling()) {
@@ -82,10 +82,10 @@ HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(HTMLTableElement* table,
// If still looking at top level and bodies, find the next row in top level or the first in the next body section.
if (!previous || isInHead(previous))
child = table->firstChild();
- else if (previous->parent() == table)
+ else if (previous->parentNode() == table)
child = previous->nextSibling();
else if (isInBody(previous))
- child = previous->parent()->nextSibling();
+ child = previous->parentNode()->nextSibling();
for (; child; child = child->nextSibling()) {
if (child->hasTagName(trTag))
return static_cast<HTMLTableRowElement*>(child);
@@ -101,7 +101,7 @@ HTMLTableRowElement* HTMLTableRowsCollection::rowAfter(HTMLTableElement* table,
if (!previous || !isInFoot(previous))
child = table->firstChild();
else
- child = previous->parent()->nextSibling();
+ child = previous->parentNode()->nextSibling();
for (; child; child = child->nextSibling()) {
if (child->hasTagName(tfootTag)) {
for (Node* grandchild = child->firstChild(); grandchild; grandchild = grandchild->nextSibling()) {