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

Unified Diff: third_party/WebKit/Source/core/animation/animatable/AnimatableStrokeDasharrayList.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/animatable/AnimatableStrokeDasharrayList.cpp
diff --git a/third_party/WebKit/Source/core/animation/animatable/AnimatableStrokeDasharrayList.cpp b/third_party/WebKit/Source/core/animation/animatable/AnimatableStrokeDasharrayList.cpp
index 8b3a0d1ff1696735bfbe5618ca45aacc747a6a6e..6bcf06fabd659874a73dde3702444216a3350ad0 100644
--- a/third_party/WebKit/Source/core/animation/animatable/AnimatableStrokeDasharrayList.cpp
+++ b/third_party/WebKit/Source/core/animation/animatable/AnimatableStrokeDasharrayList.cpp
@@ -39,7 +39,7 @@ AnimatableStrokeDasharrayList::AnimatableStrokeDasharrayList(
float zoom) {
RefPtr<SVGDashArray> lengths = passLengths;
for (const Length& dashLength : lengths->vector())
- m_values.append(AnimatableLength::create(dashLength, zoom));
+ m_values.push_back(AnimatableLength::create(dashLength, zoom));
}
PassRefPtr<SVGDashArray> AnimatableStrokeDasharrayList::toSVGDashArray(
@@ -81,12 +81,12 @@ PassRefPtr<AnimatableValue> AnimatableStrokeDasharrayList::interpolateTo(
DEFINE_STATIC_REF(AnimatableLength, zeroPixels,
(AnimatableLength::create(Length(Fixed), 1)));
if (from.isEmpty()) {
- from.append(zeroPixels);
- from.append(zeroPixels);
+ from.push_back(zeroPixels);
+ from.push_back(zeroPixels);
}
if (to.isEmpty()) {
- to.append(zeroPixels);
- to.append(zeroPixels);
+ to.push_back(zeroPixels);
+ to.push_back(zeroPixels);
}
}

Powered by Google App Engine
This is Rietveld 408576698