summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/FixedTableLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/FixedTableLayout.cpp')
-rw-r--r--WebCore/rendering/FixedTableLayout.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/rendering/FixedTableLayout.cpp b/WebCore/rendering/FixedTableLayout.cpp
index f995fbf..ee3e75a 100644
--- a/WebCore/rendering/FixedTableLayout.cpp
+++ b/WebCore/rendering/FixedTableLayout.cpp
@@ -93,7 +93,7 @@ int FixedTableLayout::calcWidthArray(int)
Length grpWidth;
while (child) {
if (child->isTableCol()) {
- RenderTableCol* col = static_cast<RenderTableCol*>(child);
+ RenderTableCol* col = toRenderTableCol(child);
if (col->firstChild())
grpWidth = col->style()->width();
else {
@@ -128,6 +128,7 @@ int FixedTableLayout::calcWidthArray(int)
currentEffectiveColumn++;
}
}
+ toRenderTableCol(child)->calcPrefWidths();
} else
break;
@@ -155,7 +156,7 @@ int FixedTableLayout::calcWidthArray(int)
child = firstRow->firstChild();
while (child) {
if (child->isTableCell()) {
- RenderTableCell* cell = static_cast<RenderTableCell*>(child);
+ RenderTableCell* cell = toRenderTableCell(child);
if (cell->prefWidthsDirty())
cell->calcPrefWidths();