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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index fce91f74a2247863f6b827301943423a61b5d212..2b39822e186fb9621a6698c74fe7b0159109a3ba 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -1366,9 +1366,9 @@ unsigned short Node::compareDocumentPosition(
HeapVector<Member<const Node>, 16> chain1;
HeapVector<Member<const Node>, 16> chain2;
if (attr1)
- chain1.append(attr1);
+ chain1.push_back(attr1);
if (attr2)
- chain2.append(attr2);
+ chain2.push_back(attr2);
if (attr1 && attr2 && start1 == start2 && start1) {
// We are comparing two attributes on the same node. Crawl our attribute map
@@ -1413,9 +1413,9 @@ unsigned short Node::compareDocumentPosition(
// of the two immediate children.
const Node* current;
for (current = start1; current; current = current->parentOrShadowHostNode())
- chain1.append(current);
+ chain1.push_back(current);
for (current = start2; current; current = current->parentOrShadowHostNode())
- chain2.append(current);
+ chain2.push_back(current);
unsigned index1 = chain1.size();
unsigned index2 = chain2.size();
@@ -1578,7 +1578,7 @@ void Node::printNodePathTo(std::ostream& stream) const {
HeapVector<Member<const Node>, 16> chain;
const Node* node = this;
while (node->parentOrShadowHostNode()) {
- chain.append(node);
+ chain.push_back(node);
node = node->parentOrShadowHostNode();
}
for (unsigned index = chain.size(); index > 0; --index) {
@@ -2294,7 +2294,7 @@ StaticNodeList* Node::getDestinationInsertionPoints() {
DCHECK(insertionPoint->containingShadowRoot());
if (!insertionPoint->containingShadowRoot()->isOpenOrV0())
break;
- filteredInsertionPoints.append(insertionPoint);
+ filteredInsertionPoints.push_back(insertionPoint);
}
return StaticNodeList::adopt(filteredInsertionPoints);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/MutationObserver.cpp ('k') | third_party/WebKit/Source/core/dom/NodeRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698