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

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

Issue 2610253004: Migrate WTF::Vector::append() to ::push_back() [part 9 of N] (Closed)
Patch Set: rebase 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.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
index 603f7c357168986e2c4eabca8382c6b28a810c50..6fb6a84f70109352033db6532ea9af73bd3d2a83 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -286,7 +286,7 @@ void LayoutTableSection::addCell(LayoutTableCell* cell, LayoutTableRow* row) {
ensureCols(insertionRow + r, m_cCol + 1);
CellStruct& c = cellAt(insertionRow + r, m_cCol);
ASSERT(cell);
- c.cells.append(cell);
+ c.cells.push_back(cell);
checkThatVectorIsDOMOrdered(c.cells);
// If cells overlap then we take the slow path for painting.
if (c.cells.size() > 1)
@@ -649,7 +649,7 @@ void LayoutTableSection::distributeRowSpanHeightToRows(
for (unsigned row = 0; row < m_grid.size(); row++) {
if (rowHasOnlySpanningCells(row))
count++;
- rowsCountWithOnlySpanningCells.append(count);
+ rowsCountWithOnlySpanningCells.push_back(count);
}
for (unsigned i = 0; i < rowSpanCells.size(); i++) {
@@ -896,7 +896,7 @@ int LayoutTableSection::calcRowLogicalHeight() {
std::max(indexOfFirstStretchableRow, rowIndexBelowCell);
} else if (cell->rowSpan() > 1) {
DCHECK(!rowSpanCells.contains(cell));
- rowSpanCells.append(cell);
+ rowSpanCells.push_back(cell);
}
if (cell->hasOverrideLogicalContentHeight()) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698