Index: Source/core/html/parser/HTMLDocumentParser.cpp |
diff --git a/Source/core/html/parser/HTMLDocumentParser.cpp b/Source/core/html/parser/HTMLDocumentParser.cpp |
index 0ef764d72dfd6938a2a8037a8ac49af17154a3ca..324d5fbbad4efe9d212d0678c86ec8d5d19fe26d 100644 |
--- a/Source/core/html/parser/HTMLDocumentParser.cpp |
+++ b/Source/core/html/parser/HTMLDocumentParser.cpp |
@@ -432,9 +432,9 @@ void HTMLDocumentParser::processParsedChunkFromBackgroundParser(PassOwnPtr<Parse |
HTMLParserThread::shared()->postTask(bind(&BackgroundHTMLParser::startedChunkWithCheckpoint, m_backgroundParser, chunk->inputCheckpoint)); |
- for (XSSInfoStream::const_iterator it = chunk->xssInfos.begin(); it != chunk->xssInfos.end(); ++it) { |
- m_textPosition = (*it)->m_textPosition; |
- m_xssAuditorDelegate.didBlockScript(**it); |
+ for (const auto& xssInfo : chunk->xssInfos) { |
+ m_textPosition = xssInfo->m_textPosition; |
+ m_xssAuditorDelegate.didBlockScript(*xssInfo); |
if (isStopped()) |
break; |
} |