Bug 1156010 - Mark nsINode::mParent as MOZ_OWNING_REF; r=smaug

This commit is contained in:
Ehsan Akhgari 2015-04-18 15:50:21 -04:00
parent 7dd975f78d
commit 7a0fb16be0

View File

@ -1971,7 +1971,10 @@ protected:
nsRefPtr<mozilla::dom::NodeInfo> mNodeInfo;
nsINode* mParent;
// mParent is an owning ref most of the time, except for the case of document
// nodes, so it cannot be represented by nsCOMPtr, so mark is as
// MOZ_OWNING_REF.
nsINode* MOZ_OWNING_REF mParent;
private:
// Boolean flags.