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

Unified Diff: third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp

Issue 2562773002: Migrate WTF::Vector::append() to ::push_back() [part 2 of N] (Closed)
Patch Set: rebase Created 4 years 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/animation/LengthListPropertyFunctions.cpp
diff --git a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
index b1c2212501fc0562948dfbe39f7556b4e44d070d..ba7c6294bfe13c653b5eb1082cb3b0c88aa74297 100644
--- a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
+++ b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
@@ -106,22 +106,22 @@ bool LengthListPropertyFunctions::getInitialLengthList(CSSPropertyID property,
}
static bool appendToVector(const LengthPoint& point, Vector<Length>& result) {
- result.append(point.x());
- result.append(point.y());
+ result.push_back(point.x());
+ result.push_back(point.y());
return true;
}
static bool appendToVector(const LengthSize& size, Vector<Length>& result) {
- result.append(size.width());
- result.append(size.height());
+ result.push_back(size.width());
+ result.push_back(size.height());
return true;
}
static bool appendToVector(const TransformOrigin& transformOrigin,
Vector<Length>& result) {
- result.append(transformOrigin.x());
- result.append(transformOrigin.y());
- result.append(Length(transformOrigin.z(), Fixed));
+ result.push_back(transformOrigin.x());
+ result.push_back(transformOrigin.y());
+ result.push_back(Length(transformOrigin.z(), Fixed));
return true;
}
@@ -163,7 +163,7 @@ bool LengthListPropertyFunctions::getLengthList(CSSPropertyID property,
const FillLayer* fillLayer = getFillLayer(property, style);
FillLayerMethods fillLayerMethods(property);
while (fillLayer && (fillLayer->*fillLayerMethods.isSet)()) {
- result.append((fillLayer->*fillLayerMethods.getLength)());
+ result.push_back((fillLayer->*fillLayerMethods.getLength)());
fillLayer = fillLayer->next();
}
return true;

Powered by Google App Engine
This is Rietveld 408576698