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

Unified Diff: third_party/WebKit/Source/platform/graphics/PictureSnapshot.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/PictureSnapshot.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
index a3d8a56b1a5f39dd9adb97b725f5367fe1175348..729c88f19067bfa266afe5d506a122a12817d8c9 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
@@ -96,7 +96,7 @@ PassRefPtr<PictureSnapshot> PictureSnapshot::load(
FloatRect cullRect(picture->cullRect());
cullRect.moveBy(tileStream->layerOffset);
unionRect.unite(cullRect);
- pictures.append(std::move(picture));
+ pictures.push_back(std::move(picture));
}
if (tiles.size() == 1)
return adoptRef(new PictureSnapshot(std::move(pictures[0])));
@@ -178,7 +178,7 @@ std::unique_ptr<PictureSnapshot::Timings> PictureSnapshot::profile(
double now = WTF::monotonicallyIncreasingTime();
double stopTime = now + minDuration;
for (unsigned step = 0; step < minRepeatCount || now < stopTime; ++step) {
- timings->append(Vector<double>());
+ timings->push_back(Vector<double>());
Vector<double>* currentTimings = &timings->back();
if (timings->size() > 1)
currentTimings->reserveCapacity(timings->begin()->size());

Powered by Google App Engine
This is Rietveld 408576698