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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp

Issue 2566403003: Migrate WTF::Vector::append() to ::push_back() [part 3 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/css/parser/CSSTokenizer.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp
index 352290065cae91b791924b21486b09c06c25e035..26de5664a0ae380942d1bbbf6d78b3d8d6c6a11b 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.cpp
@@ -39,7 +39,7 @@ CSSTokenizer::CSSTokenizer(const String& string) : m_input(string) {
continue;
if (token.type() == EOFToken)
return;
- m_tokens.append(token);
+ m_tokens.push_back(token);
}
}
@@ -57,7 +57,7 @@ CSSTokenizer::CSSTokenizer(const String& string,
if (token.type() == CommentToken) {
wrapper.addComment(offset, m_input.offset(), m_tokens.size());
} else {
- m_tokens.append(token);
+ m_tokens.push_back(token);
wrapper.addToken(offset);
}
offset = m_input.offset();
@@ -101,14 +101,14 @@ CSSParserToken CSSTokenizer::whiteSpace(UChar cc) {
}
CSSParserToken CSSTokenizer::blockStart(CSSParserTokenType type) {
- m_blockStack.append(type);
+ m_blockStack.push_back(type);
return CSSParserToken(type, CSSParserToken::BlockStart);
}
CSSParserToken CSSTokenizer::blockStart(CSSParserTokenType blockType,
CSSParserTokenType type,
StringView name) {
- m_blockStack.append(blockType);
+ m_blockStack.push_back(blockType);
return CSSParserToken(type, name, CSSParserToken::BlockStart);
}
@@ -677,7 +677,7 @@ bool CSSTokenizer::nextCharsAreIdentifier() {
}
StringView CSSTokenizer::registerString(const String& string) {
- m_stringPool.append(string);
+ m_stringPool.push_back(string);
return string;
}

Powered by Google App Engine
This is Rietveld 408576698