Bug 1156009 - Mark nsChildContentList::mNode as MOZ_NON_OWNING_REF; r=baku

This commit is contained in:
Ehsan Akhgari 2015-04-18 15:21:53 -04:00
parent d9fc81c465
commit 4cd3da0947

View File

@ -275,8 +275,10 @@ public:
private: private:
~nsChildContentList() {} ~nsChildContentList() {}
// The node whose children make up the list (weak reference) // The node whose children make up the list.
nsINode* mNode; // This is a non-owning ref which is safe because it's set to nullptr by
// DropReference() by the node slots get destroyed.
nsINode* MOZ_NON_OWNING_REF mNode;
}; };
// This should be used for any nsINode sub-class that has fields of its own // This should be used for any nsINode sub-class that has fields of its own