diff options
Diffstat (limited to 'WebCore/rendering/RenderTableCol.cpp')
-rw-r--r-- | WebCore/rendering/RenderTableCol.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/WebCore/rendering/RenderTableCol.cpp b/WebCore/rendering/RenderTableCol.cpp index 19538fa..f17963c 100644 --- a/WebCore/rendering/RenderTableCol.cpp +++ b/WebCore/rendering/RenderTableCol.cpp @@ -37,7 +37,7 @@ namespace WebCore { using namespace HTMLNames; RenderTableCol::RenderTableCol(Node* node) - : RenderContainer(node), m_span(1) + : RenderBox(node), m_span(1) { // init RenderObject attributes setInline(true); // our object is not Inline @@ -47,9 +47,9 @@ RenderTableCol::RenderTableCol(Node* node) void RenderTableCol::updateFromElement() { int oldSpan = m_span; - Node* node = element(); - if (node && (node->hasTagName(colTag) || node->hasTagName(colgroupTag))) { - HTMLTableColElement* tc = static_cast<HTMLTableColElement*>(node); + Node* n = node(); + if (n && (n->hasTagName(colTag) || n->hasTagName(colgroupTag))) { + HTMLTableColElement* tc = static_cast<HTMLTableColElement*>(n); m_span = tc->span(); } else m_span = !(style() && style()->display() == TABLE_COLUMN_GROUP); @@ -69,7 +69,7 @@ bool RenderTableCol::canHaveChildren() const return style()->display() == TABLE_COLUMN_GROUP; } -IntRect RenderTableCol::clippedOverflowRectForRepaint(RenderBox* /*repaintContainer*/) +IntRect RenderTableCol::clippedOverflowRectForRepaint(RenderBoxModelObject* repaintContainer) { // For now, just repaint the whole table. // FIXME: Find a better way to do this, e.g., need to repaint all the cells that we @@ -79,7 +79,7 @@ IntRect RenderTableCol::clippedOverflowRectForRepaint(RenderBox* /*repaintContai if (table && !table->isTable()) table = table->parent(); if (table && table->isTable()) - return table->absoluteClippedOverflowRect(); + return table->clippedOverflowRectForRepaint(repaintContainer); return IntRect(); } |