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

Unified Diff: third_party/WebKit/Source/core/dom/Range.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/Range.cpp
diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp
index 9311eabbb81786aa863888cd3b209f9b7b859818..bf3832d19f4575c8599d5a6eb0d4c8b8eec7abbc 100644
--- a/third_party/WebKit/Source/core/dom/Range.cpp
+++ b/third_party/WebKit/Source/core/dom/Range.cpp
@@ -590,7 +590,7 @@ DocumentFragment* Range::processContents(ActionType action,
if (processStart) {
NodeVector nodes;
for (Node* n = processStart; n && n != processEnd; n = n->nextSibling())
- nodes.append(n);
+ nodes.push_back(n);
processNodes(action, nodes, commonRoot, fragment, exceptionState);
}
@@ -662,7 +662,7 @@ Node* Range::processContentsBetweenOffsets(ActionType action,
n = n->nextSibling();
for (unsigned i = startOffset; n && i < endOffset;
i++, n = n->nextSibling())
- nodes.append(n);
+ nodes.push_back(n);
processNodes(action, nodes, container, result, exceptionState);
break;
@@ -705,7 +705,7 @@ Node* Range::processAncestorsAndTheirSiblings(
for (Node& runner : NodeTraversal::ancestorsOf(*container)) {
if (runner == commonRoot)
break;
- ancestors.append(runner);
+ ancestors.push_back(runner);
}
Node* firstChildInAncestorToProcess = direction == ProcessContentsForward
@@ -731,7 +731,7 @@ Node* Range::processAncestorsAndTheirSiblings(
child = (direction == ProcessContentsForward)
? child->nextSibling()
: child->previousSibling())
- nodes.append(child);
+ nodes.push_back(child);
for (const auto& node : nodes) {
Node* child = node.get();

Powered by Google App Engine
This is Rietveld 408576698