Index: Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
diff --git a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
index 485721e630a034e252ad2cd205b4dc96ff191b97..6352fe77c4400d8ea5d3c908a5ff070321b3bdc9 100644 |
--- a/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
+++ b/Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp |
@@ -71,10 +71,10 @@ void CustomElementMicrotaskDispatcher::doDispatch() |
m_phase = Resolving; |
m_phase = DispatchingCallbacks; |
- for (WillBeHeapVector<RawPtrWillBeMember<CustomElementCallbackQueue> >::iterator it = m_elements.begin(); it != m_elements.end(); ++it) { |
+ for (const auto& element : m_elements) { |
// Created callback may enqueue an attached callback. |
CustomElementProcessingStack::CallbackDeliveryScope scope; |
- (*it)->processInElementQueue(kMicrotaskQueueId); |
+ element->processInElementQueue(kMicrotaskQueueId); |
} |
m_elements.clear(); |