| Index: Source/core/dom/StaticNodeList.h
|
| diff --git a/Source/core/dom/StaticNodeList.h b/Source/core/dom/StaticNodeList.h
|
| index 1875132d4fdc6ffa053ad58d805986c3ceaca822..500e798696ad8a8440eae039e6f2e0767088f663 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.
|
| @@ -63,7 +65,7 @@ private:
|
| return m_nodes.capacity() * sizeof(RefPtr<Node>);
|
| }
|
|
|
| - Vector<RefPtr<Node> > m_nodes;
|
| + WillBeHeapVector<RefPtrWillBeMember<Node> > m_nodes;
|
| };
|
|
|
| } // namespace WebCore
|
|
|