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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.h

Issue 2630723002: Fix blink_perf.paint regression about tables (Closed)
Patch Set: Nits 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/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 {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTable.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698