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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp

Issue 2610383002: Migrate WTF::Vector::append() to ::push_back() [part 8 of N] (Closed)
Patch Set: 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/inspector/InspectorAnimationAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
index 710272c583471d726e04552bbb22023a25998d3a..633d8ee4346831f1ce06e5acd73d3373176d3f62 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
@@ -289,7 +289,7 @@ blink::Animation* InspectorAnimationAgent::animationClone(
KeyframeVector oldKeyframes = oldStringKeyframeModel->getFrames();
StringKeyframeVector newKeyframes;
for (auto& oldKeyframe : oldKeyframes)
- newKeyframes.append(toStringKeyframe(oldKeyframe.get()));
+ newKeyframes.push_back(toStringKeyframe(oldKeyframe.get()));
newModel = StringKeyframeEffectModel::create(newKeyframes);
} else if (oldModel->isAnimatableValueKeyframeEffectModel()) {
AnimatableValueKeyframeEffectModel* oldAnimatableValueKeyframeModel =
@@ -298,7 +298,7 @@ blink::Animation* InspectorAnimationAgent::animationClone(
oldAnimatableValueKeyframeModel->getFrames();
AnimatableValueKeyframeVector newKeyframes;
for (auto& oldKeyframe : oldKeyframes)
- newKeyframes.append(toAnimatableValueKeyframe(oldKeyframe.get()));
+ newKeyframes.push_back(toAnimatableValueKeyframe(oldKeyframe.get()));
newModel = AnimatableValueKeyframeEffectModel::create(newKeyframes);
}
@@ -378,7 +378,7 @@ Response InspectorAnimationAgent::setTiming(const String& animationId,
ASSERT(frames.size() == 3);
KeyframeVector newFrames;
for (int i = 0; i < 3; i++)
- newFrames.append(toAnimatableValueKeyframe(frames[i]->clone().get()));
+ newFrames.push_back(toAnimatableValueKeyframe(frames[i]->clone().get()));
// Update delay, represented by the distance between the first two
// keyframes.
newFrames[1]->setOffset(delay / (delay + duration));
@@ -457,11 +457,11 @@ String InspectorAnimationAgent::createCSSId(blink::Animation& animation) {
Vector<CSSPropertyID> cssProperties;
if (type == AnimationType::CSSAnimation) {
for (CSSPropertyID property : animationProperties)
- cssProperties.append(property);
+ cssProperties.push_back(property);
} else {
for (CSSPropertyID property : transitionProperties)
- cssProperties.append(property);
- cssProperties.append(cssPropertyID(animation.id()));
+ cssProperties.push_back(property);
+ cssProperties.push_back(cssPropertyID(animation.id()));
}
Element* element = effect->target();

Powered by Google App Engine
This is Rietveld 408576698