Bug 1167395 - Mark CharacterDataChangeInfo::Details as MOZ_STACK_CLASS, and mark mNextSibling as MOZ_NON_OWNING_REF. r=smaug
authorMichael Layzell <michael@thelayzells.com>
Fri, 03 Jul 2015 15:55:00 +0200
changeset 275848 78d7bfaf3fc1ab14810e2d94e830890c42e5a2e1
parent 275847 f2a8c2a5878bafdbfa2a19e28e1f23555b9cb925
child 275849 50b3b013e383d6210611226f30ab5b46aae433fa
push id3246
push usergijskruitbosch@gmail.com
push dateTue, 07 Jul 2015 09:06:38 +0000
reviewerssmaug
bugs1167395
milestone42.0a1
Bug 1167395 - Mark CharacterDataChangeInfo::Details as MOZ_STACK_CLASS, and mark mNextSibling as MOZ_NON_OWNING_REF. r=smaug
dom/base/nsIMutationObserver.h
--- a/dom/base/nsIMutationObserver.h
+++ b/dom/base/nsIMutationObserver.h
@@ -57,26 +57,26 @@ struct CharacterDataChangeInfo
   /**
    * The net result is that mChangeStart characters at the beginning of the
    * text remained as they were.  The next mChangeEnd - mChangeStart characters
    * were removed, and mReplaceLength characters were inserted in their place.
    * The text that used to begin at mChangeEnd now begins at
    * mChangeStart + mReplaceLength.
    */
 
-  struct Details {
+  struct MOZ_STACK_CLASS Details {
     enum {
       eMerge,  // two text nodes are merged as a result of normalize()
       eSplit   // a text node is split as a result of splitText()
     } mType;
     /**
      * For eMerge it's the text node that will be removed, for eSplit it's the
      * new text node.
      */
-    nsIContent* mNextSibling;
+    nsIContent* MOZ_NON_OWNING_REF mNextSibling;
   };
 
   /**
    * Used for splitText() and normalize(), otherwise null.
    */
   Details* mDetails;
 };