Bug 1167390 - Mark nsNodeWeakReference::mNode as MOZ_NON_OWNING_REF. r=smaug
authorMichael Layzell <michael@thelayzells.com>
Thu, 21 May 2015 14:24:00 +0200
changeset 275847 f2a8c2a5878bafdbfa2a19e28e1f23555b9cb925
parent 275846 a975da08b624a7a38e4ec2ae87056a2589ad4571
child 275848 78d7bfaf3fc1ab14810e2d94e830890c42e5a2e1
push id3246
push usergijskruitbosch@gmail.com
push dateTue, 07 Jul 2015 09:06:38 +0000
reviewerssmaug
bugs1167390
milestone42.0a1
Bug 1167390 - Mark nsNodeWeakReference::mNode as MOZ_NON_OWNING_REF. r=smaug
dom/base/FragmentOrElement.h
--- a/dom/base/FragmentOrElement.h
+++ b/dom/base/FragmentOrElement.h
@@ -60,17 +60,17 @@ public:
   void NoticeNodeDestruction()
   {
     mNode = nullptr;
   }
 
 private:
   ~nsNodeWeakReference();
 
-  nsINode* mNode;
+  nsINode* MOZ_NON_OWNING_REF mNode;
 };
 
 /**
  * Tearoff to use for nodes to implement nsISupportsWeakReference
  */
 class nsNodeSupportsWeakRefTearoff final : public nsISupportsWeakReference
 {
 public: