Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementMicrotaskQueueBase.cpp

Issue 2553343002: Avoid WTF::Vector::at() and operator[] in core/dom. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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, "");
}

Powered by Google App Engine
This is Rietveld 408576698