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

Unified Diff: Source/core/dom/EmptyNodeList.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/Element.cpp ('k') | Source/core/dom/EmptyNodeList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/EmptyNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698