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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.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/HTMLSlotElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
index e2b48feb57c9dc2a3c98f66d7729d7067a5111d8..d298d7a80ea854044c57e5002eff3f6f50b0e510 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
@@ -91,7 +91,7 @@ HTMLSlotElement::getDistributedNodesForBinding() {
if (isHTMLSlotElement(child)) {
child = NodeTraversal::next(*child, this);
} else {
- distributedNodes.append(child);
+ distributedNodes.push_back(child);
child = NodeTraversal::nextSkippingChildren(*child, this);
}
}
@@ -106,7 +106,7 @@ const HeapVector<Member<Node>>& HTMLSlotElement::getDistributedNodes() {
void HTMLSlotElement::appendAssignedNode(Node& hostChild) {
DCHECK(hostChild.isSlotable());
- m_assignedNodes.append(&hostChild);
+ m_assignedNodes.push_back(&hostChild);
}
void HTMLSlotElement::resolveDistributedNodes() {
@@ -124,7 +124,7 @@ void HTMLSlotElement::resolveDistributedNodes() {
void HTMLSlotElement::appendDistributedNode(Node& node) {
size_t size = m_distributedNodes.size();
- m_distributedNodes.append(&node);
+ m_distributedNodes.push_back(&node);
m_distributedIndices.set(&node, size);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698