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

Unified Diff: Source/core/dom/custom/CustomElementMicrotaskDispatcher.cpp

Issue 610273005: Use auto and Range-based loop interation in Source/core/dom/custom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months 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
« no previous file with comments | « no previous file | Source/core/dom/custom/CustomElementRegistrationContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | Source/core/dom/custom/CustomElementRegistrationContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698