| Index: Source/core/events/DOMWindowEventQueue.cpp
|
| diff --git a/Source/core/events/DOMWindowEventQueue.cpp b/Source/core/events/DOMWindowEventQueue.cpp
|
| index b4705379ac5fbe5fe410add3f0ef89cb9d80bc50..5ecb46590e8c95f3f63b608a71b212d9173d903c 100644
|
| --- a/Source/core/events/DOMWindowEventQueue.cpp
|
| +++ b/Source/core/events/DOMWindowEventQueue.cpp
|
| @@ -108,9 +108,8 @@ void DOMWindowEventQueue::close()
|
| m_isClosed = true;
|
| m_pendingEventTimer->stop();
|
| if (InspectorInstrumentation::hasFrontends()) {
|
| - WillBeHeapListHashSet<RefPtrWillBeMember<Event>, 16>::iterator it = m_queuedEvents.begin();
|
| - for (; it != m_queuedEvents.end(); ++it) {
|
| - RefPtrWillBeRawPtr<Event> event = *it;
|
| + for (const auto& queuedEvent : m_queuedEvents) {
|
| + RefPtrWillBeRawPtr<Event> event = queuedEvent;
|
| if (event)
|
| InspectorInstrumentation::didRemoveEvent(event->target(), event.get());
|
| }
|
|
|