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

Unified Diff: third_party/WebKit/Source/core/events/DOMWindowEventQueue.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/events/DOMWindowEventQueue.cpp
diff --git a/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp b/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp
index 8af82ad61eb535584eeea40ac434d8ace225eaa6..0bfdb66218bc64002c4b02ffa109822598e7acdd 100644
--- a/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp
+++ b/third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp
@@ -89,7 +89,7 @@ bool DOMWindowEventQueue::enqueueEvent(Event* event) {
InspectorInstrumentation::asyncTaskScheduled(
event->target()->getExecutionContext(), event->type(), event);
- bool wasAdded = m_queuedEvents.add(event).isNewEntry;
+ bool wasAdded = m_queuedEvents.insert(event).isNewEntry;
DCHECK(wasAdded); // It should not have already been in the list.
if (!m_pendingEventTimer->isActive())
@@ -128,7 +128,7 @@ void DOMWindowEventQueue::pendingEventTimerFired() {
// Insert a marker for where we should stop.
DCHECK(!m_queuedEvents.contains(nullptr));
- bool wasAdded = m_queuedEvents.add(nullptr).isNewEntry;
+ bool wasAdded = m_queuedEvents.insert(nullptr).isNewEntry;
DCHECK(wasAdded); // It should not have already been in the list.
while (!m_queuedEvents.isEmpty()) {

Powered by Google App Engine
This is Rietveld 408576698