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

Unified Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp

Issue 2583233002: Migrate WTF::Vector::append() to ::push_back() [part 7 of N] (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
index f3e5bb146ed41b923432f04c972153c660e186e7..df8fcc30611fa39d2ee7bd651fbdbc844678cab4 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
@@ -256,7 +256,7 @@ void BackgroundHTMLParser::pumpTokenizer() {
FilterTokenRequest(*m_token, m_sourceTracker,
m_tokenizer->shouldAllowCDATA()))) {
xssInfo->m_textPosition = position;
- m_pendingXSSInfos.append(std::move(xssInfo));
+ m_pendingXSSInfos.push_back(std::move(xssInfo));
}
CompactHTMLToken token(m_token.get(), position);
@@ -278,12 +278,13 @@ void BackgroundHTMLParser::pumpTokenizer() {
m_startingScript = true;
}
- m_pendingTokens->append(token);
+ m_pendingTokens->push_back(token);
if (isCSPMetaTag) {
m_pendingCSPMetaTokenIndex = m_pendingTokens->size() - 1;
}
if (shouldEvaluateForDocumentWrite) {
- m_likelyDocumentWriteScriptIndices.append(m_pendingTokens->size() - 1);
+ m_likelyDocumentWriteScriptIndices.push_back(m_pendingTokens->size() -
+ 1);
}
}

Powered by Google App Engine
This is Rietveld 408576698