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

Unified Diff: third_party/WebKit/Source/core/css/CSSBasicShapeValues.cpp

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 of N] (Closed)
Patch Set: 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/css/CSSBasicShapeValues.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSBasicShapeValues.cpp b/third_party/WebKit/Source/core/css/CSSBasicShapeValues.cpp
index 205b4c392cabd2e9de0aef59aeb856bbf5aed2c6..d5e766f32652d5e35e485916bfe0caa7cedb3a03 100644
--- a/third_party/WebKit/Source/core/css/CSSBasicShapeValues.cpp
+++ b/third_party/WebKit/Source/core/css/CSSBasicShapeValues.cpp
@@ -267,7 +267,7 @@ String CSSBasicShapePolygonValue::customCSSText() const {
points.reserveInitialCapacity(m_values.size());
for (size_t i = 0; i < m_values.size(); ++i)
- points.append(m_values.at(i)->cssText());
+ points.push_back(m_values.at(i)->cssText());
return buildPolygonString(m_windRule, points);
}
@@ -291,13 +291,13 @@ static bool buildInsetRadii(Vector<String>& radii,
bool showBottomRight = showBottomLeft || (bottomRightRadius != topLeftRadius);
bool showTopRight = showBottomRight || (topRightRadius != topLeftRadius);
- radii.append(topLeftRadius);
+ radii.push_back(topLeftRadius);
if (showTopRight)
- radii.append(topRightRadius);
+ radii.push_back(topRightRadius);
if (showBottomRight)
- radii.append(bottomRightRadius);
+ radii.push_back(bottomRightRadius);
if (showBottomLeft)
- radii.append(bottomLeftRadius);
+ radii.push_back(bottomLeftRadius);
return radii.size() == 1 && radii[0] == "0px";
}

Powered by Google App Engine
This is Rietveld 408576698