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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCollection.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/HTMLCollection.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCollection.cpp b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
index 74f3b7f53452fe1c35c228455e6812ce88de2b4d..33a3c2fd9f7e572191672575532e4a1f412276a5 100644
--- a/third_party/WebKit/Source/core/html/HTMLCollection.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCollection.cpp
@@ -457,7 +457,7 @@ void HTMLCollection::supportedPropertyNames(Vector<String>& names) {
HashSet<AtomicString>::AddResult addResult =
existingNames.add(idAttribute);
if (addResult.isNewEntry)
- names.append(idAttribute);
+ names.push_back(idAttribute);
}
if (!element->isHTMLElement())
continue;
@@ -468,7 +468,7 @@ void HTMLCollection::supportedPropertyNames(Vector<String>& names) {
HashSet<AtomicString>::AddResult addResult =
existingNames.add(nameAttribute);
if (addResult.isNewEntry)
- names.append(nameAttribute);
+ names.push_back(nameAttribute);
}
}
}
@@ -513,12 +513,12 @@ void HTMLCollection::namedItems(const AtomicString& name,
const NamedItemCache& cache = namedItemCache();
if (HeapVector<Member<Element>>* idResults = cache.getElementsById(name)) {
for (const auto& element : *idResults)
- result.append(element);
+ result.push_back(element);
}
if (HeapVector<Member<Element>>* nameResults =
cache.getElementsByName(name)) {
for (const auto& element : *nameResults)
- result.append(element);
+ result.push_back(element);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCollection.h ('k') | third_party/WebKit/Source/core/html/HTMLDimension.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698