Index: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.cpp |
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.cpp |
index 27f17ce351bbdde57799470f3a05bcc5447172b0..e6f7d0dae7e28f698e37bf2963ce27228b039108 100644 |
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.cpp |
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.cpp |
@@ -21,9 +21,9 @@ DEFINE_TRACE(V0CustomElementMicrotaskQueueBase) { |
#if !defined(NDEBUG) |
void V0CustomElementMicrotaskQueueBase::show(unsigned indent) { |
- for (unsigned q = 0; q < m_queue.size(); ++q) { |
- if (m_queue[q]) |
- m_queue[q]->show(indent); |
+ for (const auto& step : m_queue) { |
+ if (step) |
+ step->show(indent); |
else |
fprintf(stderr, "%*snull\n", indent, ""); |
} |