Index: Source/core/html/parser/HTMLPreloadScanner.cpp |
diff --git a/Source/core/html/parser/HTMLPreloadScanner.cpp b/Source/core/html/parser/HTMLPreloadScanner.cpp |
index 351484f93700fd21f533d62844d974acb262a155..5a92b36e551735d54639094453ce7180a7b9ac2a 100644 |
--- a/Source/core/html/parser/HTMLPreloadScanner.cpp |
+++ b/Source/core/html/parser/HTMLPreloadScanner.cpp |
@@ -137,9 +137,9 @@ public: |
ASSERT(isMainThread()); |
if (!m_tagImpl) |
return; |
- for (HTMLToken::AttributeList::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) { |
- AtomicString attributeName(iter->name); |
- String attributeValue = StringImpl::create8BitIfPossible(iter->value); |
+ for (const auto& htmlTokenAttribute : attributes) { |
+ AtomicString attributeName(htmlTokenAttribute.name); |
+ String attributeValue = StringImpl::create8BitIfPossible(htmlTokenAttribute.value); |
processAttribute(attributeName, attributeValue); |
} |
} |
@@ -148,8 +148,8 @@ public: |
{ |
if (!m_tagImpl) |
return; |
- for (Vector<CompactHTMLToken::Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) |
- processAttribute(iter->name, iter->value); |
+ for (const auto& htmlTokenAttribute : attributes) |
+ processAttribute(htmlTokenAttribute.name, htmlTokenAttribute.value); |
} |
void handlePictureSourceURL(String& sourceURL) |