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

Unified Diff: third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp

Issue 2884533002: Extract LayoutTableSection::CellStruct to a standalone class TableGridCell (Closed)
Patch Set: - Created 3 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: 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 3b1dae42b532996d1f2dc01f55645f557ba150d5..c5f3d9cf2ce3427addd68f0cbb681d62461d9706 100644
--- a/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp
+++ b/third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp
@@ -57,10 +57,10 @@ void TableLayoutAlgorithmAuto::RecalcColumn(unsigned eff_col) {
for (unsigned i = 0; i < num_rows; i++) {
if (eff_col >= section->NumCols(i))
continue;
- LayoutTableSection::CellStruct current = section->CellAt(i, eff_col);
- LayoutTableCell* cell = current.PrimaryCell();
+ auto& grid_cell = section->GridCellAt(i, eff_col);
+ LayoutTableCell* cell = grid_cell.PrimaryCell();
- if (current.in_col_span || !cell)
+ if (grid_cell.InColSpan() || !cell)
continue;
column_layout.column_has_no_cells = false;
« no previous file with comments | « third_party/WebKit/Source/core/layout/TableGridCell.cpp ('k') | third_party/WebKit/Source/core/paint/TableSectionPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698