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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h 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/platform/graphics/paint/PaintController.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
index 13da458f1cd0605d6e9d2babc087f969a9f43667..4f0fc551f1ad0ec13d3c1c1fc29fbc8e28792ba3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
@@ -190,7 +190,7 @@ void PaintController::processNewItem(DisplayItem& displayItem) {
}
if (displayItem.getType() == DisplayItem::kSubsequence) {
- m_currentSubsequenceClients.append(&displayItem.client());
+ m_currentSubsequenceClients.push_back(&displayItem.client());
} else if (displayItem.getType() == DisplayItem::kEndSubsequence) {
CHECK(m_currentSubsequenceClients.back() == &displayItem.client());
m_currentSubsequenceClients.pop_back();
@@ -316,7 +316,7 @@ void PaintController::addItemToIndexIfNeeded(
.add(&displayItem.client(), Vector<size_t>())
.storedValue->value
: it->value;
- indices.append(index);
+ indices.push_back(index);
}
size_t PaintController::findCachedItem(const DisplayItem::Id& id) {
@@ -523,7 +523,7 @@ void PaintController::commitNewDisplayItems(
if (item.client().isJustCreated())
item.client().clearIsJustCreated();
if (item.skippedCache())
- skippedCacheClients.append(&item.client());
+ skippedCacheClients.push_back(&item.client());
}
}
@@ -634,7 +634,7 @@ void PaintController::generateChunkRasterInvalidationRects(
.add(&oldChunk.id->client, Vector<size_t>())
.storedValue->value
: it->value;
- indices.append(m_nextChunkToMatch);
+ indices.push_back(m_nextChunkToMatch);
}
++m_nextChunkToMatch;
}
@@ -658,7 +658,7 @@ void PaintController::generateChunkRasterInvalidationRects(
void PaintController::addRasterInvalidationInfo(const DisplayItemClient* client,
PaintChunk& chunk,
const FloatRect& rect) {
- chunk.rasterInvalidationRects.append(rect);
+ chunk.rasterInvalidationRects.push_back(rect);
if (!m_paintChunksRasterInvalidationTrackingMap)
return;
RasterInvalidationInfo info;
@@ -670,7 +670,7 @@ void PaintController::addRasterInvalidationInfo(const DisplayItemClient* client,
}
RasterInvalidationTracking& tracking =
m_paintChunksRasterInvalidationTrackingMap->add(&chunk);
- tracking.trackedRasterInvalidations.append(info);
+ tracking.trackedRasterInvalidations.push_back(info);
}
void PaintController::generateChunkRasterInvalidationRectsComparingOldChunk(

Powered by Google App Engine
This is Rietveld 408576698