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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 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/animation/css/CSSAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
index 89d12b5a8d30fe828bd634134e021a8d3e71a5df..038288efe4fffe893af5e0e88acf2c6e43f5e6cf 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -474,7 +474,7 @@ void CSSAnimations::maybeApplyPendingUpdate(Element* element) {
Animation& animation = *m_runningAnimations[cancelledIndices[i]]->animation;
animation.cancel();
animation.update(TimingUpdateOnDemand);
- m_runningAnimations.remove(cancelledIndices[i]);
+ m_runningAnimations.erase(cancelledIndices[i]);
}
for (const auto& entry : m_pendingUpdate.newAnimations()) {

Powered by Google App Engine
This is Rietveld 408576698