Index: Source/core/rendering/FastTextAutosizer.cpp |
diff --git a/Source/core/rendering/FastTextAutosizer.cpp b/Source/core/rendering/FastTextAutosizer.cpp |
index eaafe3304d62cc587a233ecb9d7700113ad5f847..f76b6cc7319f23774d7bd065d41fbb2434977cf9 100644 |
--- a/Source/core/rendering/FastTextAutosizer.cpp |
+++ b/Source/core/rendering/FastTextAutosizer.cpp |
@@ -412,16 +412,13 @@ void FastTextAutosizer::inflateAutoTable(RenderTable* table) |
for (RenderObject* section = table->firstChild(); section; section = section->nextSibling()) { |
if (!section->isTableSection()) |
continue; |
- for (RenderObject* row = toRenderTableSection(section)->firstChild(); row; row = row->nextSibling()) { |
- if (!row->isTableRow()) |
- continue; |
- for (RenderObject* cell = toRenderTableRow(row)->firstChild(); cell; cell = cell->nextSibling()) { |
- if (!cell->isTableCell() || !cell->needsLayout()) |
+ for (RenderTableRow* row = toRenderTableSection(section)->firstRow(); row; row = row->nextRow()) { |
+ for (RenderTableCell* cell = row->firstCell(); cell; cell = cell->nextCell()) { |
+ if (!cell->needsLayout()) |
continue; |
- RenderTableCell* renderTableCell = toRenderTableCell(cell); |
- beginLayout(renderTableCell); |
- inflate(renderTableCell); |
- endLayout(renderTableCell); |
+ beginLayout(cell); |
+ inflate(cell); |
+ endLayout(cell); |
} |
} |
} |