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

Unified Diff: third_party/WebKit/Source/core/svg/SVGGradientElement.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 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/svg/SVGGradientElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGGradientElement.cpp b/third_party/WebKit/Source/core/svg/SVGGradientElement.cpp
index a2954ad778eea2ebc41b11f91036ba7804f049c4..74edf376486425cb7fe6a240841fc0f06e34ab39 100644
--- a/third_party/WebKit/Source/core/svg/SVGGradientElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGGradientElement.cpp
@@ -35,9 +35,9 @@ const SVGEnumerationStringEntries&
getStaticStringEntries<SVGSpreadMethodType>() {
DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ());
if (entries.isEmpty()) {
- entries.append(std::make_pair(SVGSpreadMethodPad, "pad"));
- entries.append(std::make_pair(SVGSpreadMethodReflect, "reflect"));
- entries.append(std::make_pair(SVGSpreadMethodRepeat, "repeat"));
+ entries.push_back(std::make_pair(SVGSpreadMethodPad, "pad"));
+ entries.push_back(std::make_pair(SVGSpreadMethodReflect, "reflect"));
+ entries.push_back(std::make_pair(SVGSpreadMethodRepeat, "repeat"));
}
return entries;
}
@@ -130,7 +130,8 @@ Vector<Gradient::ColorStop> SVGGradientElement::buildStops() {
offset = std::min(std::max(previousOffset, offset), 1.0f);
previousOffset = offset;
- stops.append(Gradient::ColorStop(offset, stop.stopColorIncludingOpacity()));
+ stops.push_back(
+ Gradient::ColorStop(offset, stop.stopColorIncludingOpacity()));
}
return stops;
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFETurbulenceElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698