Index: Source/core/dom/EmptyNodeList.h |
diff --git a/Source/core/dom/EmptyNodeList.h b/Source/core/dom/EmptyNodeList.h |
index fd7c5a60b6c6cd217ebe88662cf78a4ef6d56e60..0857148db08935c28ace7fb975232da1ae4b84b4 100644 |
--- a/Source/core/dom/EmptyNodeList.h |
+++ b/Source/core/dom/EmptyNodeList.h |
@@ -39,14 +39,16 @@ namespace WebCore { |
class EmptyNodeList FINAL : public NodeList { |
public: |
- static PassRefPtr<EmptyNodeList> create(Node& rootNode) |
+ static PassRefPtrWillBeRawPtr<EmptyNodeList> create(Node& rootNode) |
{ |
- return adoptRef(new EmptyNodeList(rootNode)); |
+ return adoptRefWillBeNoop(new EmptyNodeList(rootNode)); |
} |
virtual ~EmptyNodeList(); |
Node& ownerNode() const { return *m_owner; } |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
private: |
explicit EmptyNodeList(Node& rootNode) : m_owner(rootNode) { } |
@@ -56,7 +58,7 @@ private: |
virtual bool isEmptyNodeList() const OVERRIDE { return true; } |
virtual Node* virtualOwnerNode() const OVERRIDE; |
- RefPtr<Node> m_owner; |
+ RefPtrWillBeMember<Node> m_owner; |
}; |
DEFINE_TYPE_CASTS(EmptyNodeList, NodeList, nodeList, nodeList->isEmptyNodeList(), nodeList.isEmptyNodeList()); |