| 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()) {
|
|
|