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
Родитель 0ca533f5b9
Коммит def99ac384
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -275,8 +275,10 @@ public:
private:
~nsChildContentList() {}
// The node whose children make up the list (weak reference)
nsINode* mNode;
// The node whose children make up the list.
// 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