Index: third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp |
diff --git a/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp b/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp |
index a03ee32182b041f39e86b63d45338a2f32b843df..0c4c42d5cf5195a8fe428e3262db46ad56be027d 100644 |
--- a/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp |
+++ b/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp |
@@ -55,6 +55,8 @@ void TableLayoutAlgorithmAuto::recalcColumn(unsigned effCol) { |
LayoutTableSection* section = toLayoutTableSection(child); |
unsigned numRows = section->numRows(); |
for (unsigned i = 0; i < numRows; i++) { |
+ if (effCol >= section->numCols(i)) |
+ continue; |
LayoutTableSection::CellStruct current = section->cellAt(i, effCol); |
LayoutTableCell* cell = current.primaryCell(); |