| Index: Source/core/html/parser/AtomicHTMLToken.h
|
| diff --git a/Source/core/html/parser/AtomicHTMLToken.h b/Source/core/html/parser/AtomicHTMLToken.h
|
| index 720736cdea5a0229ea256eae03f67cb93b2970ce..dd4b8217e9b467f6d7280ae3683f0e4bc9ff7cd3 100644
|
| --- a/Source/core/html/parser/AtomicHTMLToken.h
|
| +++ b/Source/core/html/parser/AtomicHTMLToken.h
|
| @@ -162,11 +162,11 @@ public:
|
| break;
|
| case HTMLToken::StartTag:
|
| m_attributes.reserveInitialCapacity(token.attributes().size());
|
| - for (Vector<CompactHTMLToken::Attribute>::const_iterator it = token.attributes().begin(); it != token.attributes().end(); ++it) {
|
| - QualifiedName name(nullAtom, AtomicString(it->name), nullAtom);
|
| + for (const auto& it : token.attributes()) {
|
| + QualifiedName name(nullAtom, AtomicString(it.name), nullAtom);
|
| // FIXME: This is N^2 for the number of attributes.
|
| if (!findAttributeInVector(m_attributes, name))
|
| - m_attributes.append(Attribute(name, AtomicString(it->value)));
|
| + m_attributes.append(Attribute(name, AtomicString(it.value)));
|
| }
|
| // Fall through!
|
| case HTMLToken::EndTag:
|
|
|