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

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

Issue 2630723002: Fix blink_perf.paint regression about tables (Closed)
Patch Set: Review comments addressed. 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
Index: third_party/WebKit/Source/core/layout/LayoutTable.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTable.cpp b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
index a541b242260e9fc510be933094d0f12474574e54..0b7a709d1b2b7b199213d8646e457c5a73c43f17 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTable.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTable.cpp
@@ -1486,9 +1486,7 @@ LayoutTableCell* LayoutTable::cellBefore(const LayoutTableCell* cell) const {
return nullptr;
// If we hit a colspan back up to a real cell.
- LayoutTableSection::CellStruct& prevCell =
- section->cellAt(cell->rowIndex(), effCol - 1);
- return prevCell.primaryCell();
+ return section->primaryCellAt(cell->rowIndex(), effCol - 1);
}
LayoutTableCell* LayoutTable::cellAfter(const LayoutTableCell* cell) const {

Powered by Google App Engine
This is Rietveld 408576698