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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFormElement.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/HTMLFormElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
index fcfa50f06f51d6e20763e1ef9e31a106e1891503..94552349f80abe5f044f1d9c7250ebfa04543fc6 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
@@ -562,7 +562,7 @@ void HTMLFormElement::collectListedElements(
else
continue;
if (listedElement->form() == this)
- elements.append(listedElement);
+ elements.push_back(listedElement);
}
}
@@ -590,7 +590,7 @@ void HTMLFormElement::collectImageElements(
for (HTMLImageElement& image :
Traversal<HTMLImageElement>::startsAfter(root)) {
if (image.formOwner() == this)
- elements.append(&image);
+ elements.push_back(&image);
}
}
@@ -658,7 +658,7 @@ bool HTMLFormElement::checkInvalidControlsAndCollectUnhandled(
HeapVector<Member<ListedElement>> elements;
elements.reserveCapacity(listedElements.size());
for (const auto& element : listedElements)
- elements.append(element);
+ elements.push_back(element);
int invalidControlsCount = 0;
for (const auto& element : elements) {
if (element->form() == this && element->isFormControlElement()) {
@@ -732,7 +732,7 @@ void HTMLFormElement::getNamedElements(
if (namedItems.size() && namedItems.front() != elementFromPast) {
addToPastNamesMap(namedItems.front().get(), name);
} else if (elementFromPast && namedItems.isEmpty()) {
- namedItems.append(elementFromPast);
+ namedItems.push_back(elementFromPast);
UseCounter::count(document(), UseCounter::FormNameAccessForPastNamesMap);
}
}

Powered by Google App Engine
This is Rietveld 408576698