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

Unified Diff: third_party/WebKit/Source/core/dom/DOMTokenList.cpp

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 of N] (Closed)
Patch Set: rebase 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/dom/DOMTokenList.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMTokenList.cpp b/third_party/WebKit/Source/core/dom/DOMTokenList.cpp
index 7a939fa745c259cd14e051e210bd56b260f48f37..b931c6832e9744863c0e2b61a36454b92573d15c 100644
--- a/third_party/WebKit/Source/core/dom/DOMTokenList.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMTokenList.cpp
@@ -105,7 +105,7 @@ bool DOMTokenList::contains(const AtomicString& token,
void DOMTokenList::add(const AtomicString& token,
ExceptionState& exceptionState) {
Vector<String> tokens;
- tokens.append(token.getString());
+ tokens.push_back(token.getString());
add(tokens, exceptionState);
}
@@ -122,7 +122,7 @@ void DOMTokenList::add(const Vector<String>& tokens,
continue;
if (filteredTokens.contains(token))
continue;
- filteredTokens.append(token);
+ filteredTokens.push_back(token);
}
if (!filteredTokens.isEmpty())
@@ -132,7 +132,7 @@ void DOMTokenList::add(const Vector<String>& tokens,
void DOMTokenList::remove(const AtomicString& token,
ExceptionState& exceptionState) {
Vector<String> tokens;
- tokens.append(token.getString());
+ tokens.push_back(token.getString());
remove(tokens, exceptionState);
}
@@ -205,7 +205,7 @@ void DOMTokenList::removeInternal(const AtomicString& token) {
AtomicString DOMTokenList::addToken(const AtomicString& input,
const AtomicString& token) {
Vector<String> tokens;
- tokens.append(token.getString());
+ tokens.push_back(token.getString());
return addTokens(input, tokens);
}
@@ -234,7 +234,7 @@ AtomicString DOMTokenList::addTokens(const AtomicString& input,
AtomicString DOMTokenList::removeToken(const AtomicString& input,
const AtomicString& token) {
Vector<String> tokens;
- tokens.append(token.getString());
+ tokens.push_back(token.getString());
return removeTokens(input, tokens);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMStringList.h ('k') | third_party/WebKit/Source/core/dom/DatasetDOMStringMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698