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

Unified Diff: third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.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/shadow/ElementShadowV0.cpp
diff --git a/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp b/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp
index 28d5fdab329e5bc0cb7aeca110d0588ad0a28996..e9209399cdf0c9a3ff77d2c49280d28f445d6b1b 100644
--- a/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp
+++ b/third_party/WebKit/Source/core/dom/shadow/ElementShadowV0.cpp
@@ -71,9 +71,9 @@ inline void DistributionPool::populateChildren(const ContainerNode& parent) {
if (isActiveInsertionPoint(*child)) {
InsertionPoint* insertionPoint = toInsertionPoint(child);
for (size_t i = 0; i < insertionPoint->distributedNodesSize(); ++i)
- m_nodes.append(insertionPoint->distributedNodeAt(i));
+ m_nodes.push_back(insertionPoint->distributedNodeAt(i));
} else {
- m_nodes.append(child);
+ m_nodes.push_back(child);
}
}
m_distributed.resize(m_nodes.size());
@@ -170,7 +170,7 @@ void ElementShadowV0::distribute() {
if (isHTMLShadowElement(*point)) {
DCHECK(!shadowInsertionPoint);
shadowInsertionPoint = toHTMLShadowElement(point);
- shadowInsertionPoints.append(shadowInsertionPoint);
+ shadowInsertionPoints.push_back(shadowInsertionPoint);
} else {
pool.distributeTo(point, this);
if (ElementShadow* shadow =
@@ -208,7 +208,7 @@ void ElementShadowV0::didDistributeNode(const Node* node,
m_nodeToInsertionPoints.add(node, nullptr);
if (result.isNewEntry)
result.storedValue->value = new DestinationInsertionPoints;
- result.storedValue->value->append(insertionPoint);
+ result.storedValue->value->push_back(insertionPoint);
}
const SelectRuleFeatureSet& ElementShadowV0::ensureSelectFeatureSet() {

Powered by Google App Engine
This is Rietveld 408576698