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

Unified Diff: Source/core/dom/custom/CustomElementRegistrationContext.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
Index: Source/core/dom/custom/CustomElementRegistrationContext.cpp
diff --git a/Source/core/dom/custom/CustomElementRegistrationContext.cpp b/Source/core/dom/custom/CustomElementRegistrationContext.cpp
index 9cf147da59d092f1c7c85915a2dafa5f99d40a7b..ff38840e39166dbfe06c0eff68577f03f064f9cf 100644
--- a/Source/core/dom/custom/CustomElementRegistrationContext.cpp
+++ b/Source/core/dom/custom/CustomElementRegistrationContext.cpp
@@ -64,8 +64,8 @@ void CustomElementRegistrationContext::registerElement(Document* document, Custo
if (!upgradeCandidates)
return;
- for (CustomElementUpgradeCandidateMap::ElementSet::const_iterator it = upgradeCandidates->begin(); it != upgradeCandidates->end(); ++it)
- CustomElement::define(*it, definition);
+ for (const auto& candidate : *upgradeCandidates)
+ CustomElement::define(candidate, definition);
}
PassRefPtrWillBeRawPtr<Element> CustomElementRegistrationContext::createCustomTagElement(Document& document, const QualifiedName& tagName)

Powered by Google App Engine
This is Rietveld 408576698