Index: third_party/WebKit/Source/core/layout/LayoutTableSection.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.h b/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
index 52e5d5dc844c3b0fa61fe1717e71fe800053be86..f7d6d1d3b2fc2f11ef3f24c78632b15f8d343658 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.h |
@@ -218,10 +218,10 @@ class CORE_EXPORT LayoutTableSection final : public LayoutTableBoxComponent { |
return m_grid[row].row[effectiveColumn]; |
} |
LayoutTableCell* primaryCellAt(unsigned row, unsigned effectiveColumn) { |
- if (effectiveColumn >= numCols(row)) |
+ Row& rowVector = m_grid[row].row; |
+ if (effectiveColumn >= rowVector.size()) |
return nullptr; |
- CellStruct& c = m_grid[row].row[effectiveColumn]; |
- return c.primaryCell(); |
+ return rowVector[effectiveColumn].primaryCell(); |
} |
const LayoutTableCell* primaryCellAt(unsigned row, |
unsigned effectiveColumn) const { |