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

Unified Diff: third_party/WebKit/Source/core/animation/CompositorPendingAnimations.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/CompositorPendingAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp b/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp
index a0ee3e8f55ddf1265c59ae7271df9781f3e53426..68d365ff4d960836c6585c89f08fdf950eee97a1 100644
--- a/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp
@@ -42,7 +42,7 @@ namespace blink {
void CompositorPendingAnimations::add(Animation* animation) {
DCHECK(animation);
DCHECK_EQ(m_pending.find(animation), kNotFound);
- m_pending.append(animation);
+ m_pending.push_back(animation);
Document* document = animation->timeline()->document();
if (document->view())
@@ -82,10 +82,10 @@ bool CompositorPendingAnimations::update(bool startOnCompositor) {
if (animation->playing() && !animation->hasStartTime() &&
animation->timeline() && animation->timeline()->isActive()) {
- waitingForStartTime.append(animation.get());
+ waitingForStartTime.push_back(animation.get());
}
} else {
- deferred.append(animation);
+ deferred.push_back(animation);
}
}
@@ -95,7 +95,7 @@ bool CompositorPendingAnimations::update(bool startOnCompositor) {
if (startedSynchronizedOnCompositor) {
for (auto& animation : waitingForStartTime) {
if (!animation->hasStartTime()) {
- m_waitingForCompositorAnimationStart.append(animation);
+ m_waitingForCompositorAnimationStart.push_back(animation);
}
}
} else {
@@ -153,7 +153,7 @@ void CompositorPendingAnimations::notifyCompositorAnimationStarted(
}
if (compositorGroup && animation->compositorGroup() != compositorGroup) {
// Still waiting.
- m_waitingForCompositorAnimationStart.append(animation);
+ m_waitingForCompositorAnimationStart.push_back(animation);
continue;
}
animation->notifyCompositorStartTime(monotonicAnimationStartTime -

Powered by Google App Engine
This is Rietveld 408576698