Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(862)

Unified Diff: Source/core/rendering/FastTextAutosizer.cpp

Issue 294783004: Use tighter typing in table rendering code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo / bug and update copyrights Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}
}
« no previous file with comments | « no previous file | Source/core/rendering/FixedTableLayout.cpp » ('j') | Source/core/rendering/FixedTableLayout.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698