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

Unified Diff: third_party/WebKit/Source/core/paint/TableSectionPainter.cpp

Issue 2534413004: Made varied number of cells in each row based on row's requirement. (Closed)
Patch Set: Reset TestExpectations file Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
index 4b8f0396fe5b60a997ff7d48d2b661167eb60193..f9e79459f53502203d0f4368d8917058b1c4eff7 100644
--- a/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
@@ -191,9 +191,8 @@ void TableSectionPainter::paintCollapsedSectionBorders(
unsigned row = r - 1;
for (unsigned c = dirtiedColumns.end(); c > dirtiedColumns.start(); c--) {
unsigned col = c - 1;
- const LayoutTableSection::CellStruct& current =
- m_layoutTableSection.cellAt(row, col);
- const LayoutTableCell* cell = current.primaryCell();
+ const LayoutTableCell* cell =
+ m_layoutTableSection.primaryCellAt(row, col);
if (!cell || (row > dirtiedRows.start() &&
m_layoutTableSection.primaryCellAt(row - 1, col) == cell) ||
(col > dirtiedColumns.start() &&
@@ -304,6 +303,8 @@ void TableSectionPainter::paintObject(const PaintInfo& paintInfo,
TableRowPainter(*row).paintOutline(paintInfoForDescendants,
paintOffset);
for (unsigned c = dirtiedColumns.start(); c < dirtiedColumns.end(); c++) {
+ if (c >= m_layoutTableSection.numCols(r))
+ break;
const LayoutTableSection::CellStruct& current =
m_layoutTableSection.cellAt(r, c);
for (LayoutTableCell* cell : current.cells) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/TableLayoutAlgorithmAuto.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698