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

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

Issue 2724363002: Migrate WTF::LinkedHashSet/ListHashSet::add() to ::insert() (Closed)
Patch Set: Created 3 years, 10 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/dom/ScriptedAnimationController.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
index 08aef2ea46f3d48f3e7013807c22bf063a064aa5..d109324d9c97aab3d3fd6a4aec53104dbf48d68b 100644
--- a/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptedAnimationController.cpp
@@ -182,7 +182,7 @@ void ScriptedAnimationController::enqueueEvent(Event* event) {
}
void ScriptedAnimationController::enqueuePerFrameEvent(Event* event) {
- if (!m_perFrameEvents.add(eventTargetKey(event)).isNewEntry)
+ if (!m_perFrameEvents.insert(eventTargetKey(event)).isNewEntry)
return;
enqueueEvent(event);
}
@@ -190,7 +190,7 @@ void ScriptedAnimationController::enqueuePerFrameEvent(Event* event) {
void ScriptedAnimationController::enqueueMediaQueryChangeListeners(
HeapVector<Member<MediaQueryListListener>>& listeners) {
for (const auto& listener : listeners) {
- m_mediaQueryListListeners.add(listener);
+ m_mediaQueryListListeners.insert(listener);
}
scheduleAnimationIfNeeded();
}

Powered by Google App Engine
This is Rietveld 408576698