| Index: third_party/WebKit/Source/core/dom/custom/V0CustomElementAsyncImportMicrotaskQueue.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementAsyncImportMicrotaskQueue.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementAsyncImportMicrotaskQueue.cpp
|
| index 67b29afcbc229162e9caab281d23b0abed495555..a1061215b25cc947bac8ecf21b440f1c33383ab6 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementAsyncImportMicrotaskQueue.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementAsyncImportMicrotaskQueue.cpp
|
| @@ -42,9 +42,9 @@ void V0CustomElementAsyncImportMicrotaskQueue::enqueue(
|
| void V0CustomElementAsyncImportMicrotaskQueue::doDispatch() {
|
| HeapVector<Member<V0CustomElementMicrotaskStep>> remaining;
|
|
|
| - for (unsigned i = 0; i < m_queue.size(); ++i) {
|
| - if (V0CustomElementMicrotaskStep::Processing == m_queue[i]->process())
|
| - remaining.append(m_queue[i].release());
|
| + for (auto& step : m_queue) {
|
| + if (V0CustomElementMicrotaskStep::Processing == step->process())
|
| + remaining.append(step.release());
|
| }
|
|
|
| m_queue.swap(remaining);
|
|
|