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

Unified Diff: Source/core/dom/NamedNodesCollection.h

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have NodeRareData clear out NodeListsNodeData instead. Created 6 years, 7 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 | « Source/core/dom/NameNodeList.cpp ('k') | Source/core/dom/NamedNodesCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NamedNodesCollection.h
diff --git a/Source/core/dom/NamedNodesCollection.h b/Source/core/dom/NamedNodesCollection.h
index 6c33cacdcf1330bf57992a973e7a6453c3b2e2ec..025fb07b812042e5865ae80169d7f6f4adbf9090 100644
--- a/Source/core/dom/NamedNodesCollection.h
+++ b/Source/core/dom/NamedNodesCollection.h
@@ -41,19 +41,21 @@ namespace WebCore {
class NamedNodesCollection FINAL : public NodeList {
public:
- static PassRefPtr<NodeList> create(const Vector<RefPtr<Element> >& nodes)
+ static PassRefPtrWillBeRawPtr<NodeList> create(const WillBeHeapVector<RefPtrWillBeMember<Element> >& nodes)
{
- return adoptRef(new NamedNodesCollection(nodes));
+ return adoptRefWillBeNoop(new NamedNodesCollection(nodes));
}
virtual unsigned length() const OVERRIDE { return m_nodes.size(); }
virtual Node* item(unsigned) const OVERRIDE;
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
- explicit NamedNodesCollection(const Vector<RefPtr<Element> >& nodes)
+ explicit NamedNodesCollection(const WillBeHeapVector<RefPtrWillBeMember<Element> > nodes)
: m_nodes(nodes) { }
- Vector<RefPtr<Element> > m_nodes;
+ WillBeHeapVector<RefPtrWillBeMember<Element> > m_nodes;
};
} // namespace WebCore
« no previous file with comments | « Source/core/dom/NameNodeList.cpp ('k') | Source/core/dom/NamedNodesCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698