Index: third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
index ff50a66cd30b031d284e70c3aeafdd6adfa44a03..b688d71ae1d43651ec015713a35d0dc3cc0546d7 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp |
@@ -1227,10 +1227,7 @@ bool LayoutTableSection::recalcChildOverflowAfterStyleChange() |
void LayoutTableSection::markAllCellsWidthsDirtyAndOrNeedsLayout(WhatToMarkAllCells whatToMark) |
{ |
- for (unsigned i = 0; i < numRows(); i++) { |
- LayoutTableRow* row = rowLayoutObjectAt(i); |
- if (!row) |
- continue; |
+ for (LayoutTableRow* row = firstRow(); row; row = row->nextRow()) { |
for (LayoutTableCell* cell = row->firstCell(); cell; cell = cell->nextCell()) { |
cell->setPreferredLogicalWidthsDirty(); |
if (whatToMark == MarkDirtyAndNeedsLayout) |