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

Unified Diff: sky/engine/core/dom/Node.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/Node.h ('k') | sky/engine/core/dom/Text.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Node.cpp
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
index 473ae8e5a2e5db4a5248e9b32c98dbed50786cab..73529a49a91e2041b334a9950cfc27aae4d992c2 100644
--- a/sky/engine/core/dom/Node.cpp
+++ b/sky/engine/core/dom/Node.cpp
@@ -1560,15 +1560,15 @@ void Node::removedLastRef()
}
#endif
-PassRefPtr<StaticNodeList> Node::getDestinationInsertionPoints()
+Vector<RefPtr<Node>> Node::getDestinationInsertionPoints()
{
document().updateDistributionForNodeIfNeeded(this);
Vector<RawPtr<InsertionPoint>, 8> insertionPoints;
collectDestinationInsertionPoints(*this, insertionPoints);
// FIXME(sky): Is there an easier way to get this into a Vector<Node>?
- Vector<RefPtr<Node> > nodes(insertionPoints.size());
- copyToVector(insertionPoints, nodes);
- return StaticNodeList::adopt(nodes);
+ Vector<RefPtr<Node>> result(insertionPoints.size());
+ copyToVector(insertionPoints, result);
+ return result;
}
void Node::setFocus(bool flag)
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/dom/Text.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698