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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 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/dom/ScriptedAnimationController.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
index 74a249625d7de5a7d3ce282f9e55ab88958510fe..08aef2ea46f3d48f3e7013807c22bf063a064aa5 100644
--- a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
@@ -99,9 +99,9 @@ void ScriptedAnimationController::dispatchEvents(
for (auto& event : m_eventQueue) {
if (event && event->interfaceName() == eventInterfaceFilter) {
m_perFrameEvents.remove(eventTargetKey(event.get()));
- events.append(event.release());
+ events.push_back(event.release());
} else {
- remaining.append(event.release());
+ remaining.push_back(event.release());
}
}
remaining.swap(m_eventQueue);
@@ -170,14 +170,14 @@ void ScriptedAnimationController::serviceScriptedAnimations(
void ScriptedAnimationController::enqueueTask(
std::unique_ptr<WTF::Closure> task) {
- m_taskQueue.append(std::move(task));
+ m_taskQueue.push_back(std::move(task));
scheduleAnimationIfNeeded();
}
void ScriptedAnimationController::enqueueEvent(Event* event) {
InspectorInstrumentation::asyncTaskScheduled(
event->target()->getExecutionContext(), event->type(), event);
- m_eventQueue.append(event);
+ m_eventQueue.push_back(event);
scheduleAnimationIfNeeded();
}

Powered by Google App Engine
This is Rietveld 408576698