зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1156006 - Mark NodeInfo::mDocument as MOZ_NON_OWNING_REF; r=baku
This commit is contained in:
Родитель
1eef7c52ff
Коммит
0ca533f5b9
|
@ -276,7 +276,9 @@ protected:
|
|||
// nsNodeInfoManager needs to pass mInner to the hash table.
|
||||
friend class ::nsNodeInfoManager;
|
||||
|
||||
nsIDocument* mDocument; // Weak. Cache of mOwnerManager->mDocument
|
||||
// This is a non-owning reference, but it's safe since it's set to nullptr
|
||||
// by nsNodeInfoManager::DropDocumentReference when the document is destroyed.
|
||||
nsIDocument* MOZ_NON_OWNING_REF mDocument; // Cache of mOwnerManager->mDocument
|
||||
|
||||
NodeInfoInner mInner;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче