Index: Source/core/dom/StaticNodeList.h |
diff --git a/Source/core/dom/StaticNodeList.h b/Source/core/dom/StaticNodeList.h |
index 1875132d4fdc6ffa053ad58d805986c3ceaca822..fad10f97586a1395ed4b124606e0a9bf5ef5433b 100644 |
--- a/Source/core/dom/StaticNodeList.h |
+++ b/Source/core/dom/StaticNodeList.h |
@@ -41,11 +41,11 @@ class Node; |
class StaticNodeList FINAL : public NodeList { |
public: |
- static PassRefPtr<StaticNodeList> adopt(Vector<RefPtr<Node> >& nodes); |
+ static PassRefPtrWillBeRawPtr<StaticNodeList> adopt(Vector<RefPtr<Node> >& nodes); |
- static PassRefPtr<StaticNodeList> createEmpty() |
+ static PassRefPtrWillBeRawPtr<StaticNodeList> createEmpty() |
{ |
- return adoptRef(new StaticNodeList); |
+ return adoptRefWillBeNoop(new StaticNodeList); |
} |
virtual ~StaticNodeList(); |
@@ -53,6 +53,8 @@ public: |
virtual unsigned length() const OVERRIDE; |
virtual Node* item(unsigned index) const OVERRIDE; |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
private: |
// If AllocationSize() is larger than this, we report it as external |
// allocated memory to V8. |
@@ -60,10 +62,10 @@ private: |
ptrdiff_t AllocationSize() |
{ |
- return m_nodes.capacity() * sizeof(RefPtr<Node>); |
+ return m_nodes.capacity() * sizeof(RefPtrWillBeMember<Node>); |
} |
- Vector<RefPtr<Node> > m_nodes; |
+ WillBeHeapVector<RefPtrWillBeMember<Node> > m_nodes; |
}; |
} // namespace WebCore |