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

Unified Diff: sky/engine/core/dom/shadow/InsertionPoint.cpp

Issue 941913002: Remove two more uses of NodeList (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « sky/engine/core/dom/shadow/InsertionPoint.h ('k') | sky/engine/core/html/HTMLContentElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/shadow/InsertionPoint.cpp
diff --git a/sky/engine/core/dom/shadow/InsertionPoint.cpp b/sky/engine/core/dom/shadow/InsertionPoint.cpp
index 6f5675e72b7b99dc9ee564b16c4458f27c4f98aa..09d8465d0ea9a1564b5c10316106cd9825bda0de 100644
--- a/sky/engine/core/dom/shadow/InsertionPoint.cpp
+++ b/sky/engine/core/dom/shadow/InsertionPoint.cpp
@@ -141,16 +141,15 @@ bool InsertionPoint::isContentInsertionPoint() const
return isHTMLContentElement(*this) && isActive();
}
-PassRefPtr<StaticNodeList> InsertionPoint::getDistributedNodes()
+Vector<RefPtr<Node>> InsertionPoint::getDistributedNodes()
{
document().updateDistributionForNodeIfNeeded(this);
- Vector<RefPtr<Node> > nodes;
- nodes.reserveInitialCapacity(m_distribution.size());
+ Vector<RefPtr<Node> > result;
+ result.reserveInitialCapacity(m_distribution.size());
for (size_t i = 0; i < m_distribution.size(); ++i)
- nodes.uncheckedAppend(m_distribution.at(i));
-
- return StaticNodeList::adopt(nodes);
+ result.uncheckedAppend(m_distribution.at(i));
+ return result;
}
void InsertionPoint::childrenChanged(const ChildrenChange& change)
« no previous file with comments | « sky/engine/core/dom/shadow/InsertionPoint.h ('k') | sky/engine/core/html/HTMLContentElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698