Bug 977072 - attributes in MutationRecord can be [Constant], r=bz
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Wed, 26 Feb 2014 21:51:45 +0200
changeset 171057 28bd6f7c0ec336d520b3439746c78757b94ccb31
parent 171056 f13e25bfdfbcc666652a712f56df43187ab13832
child 171058 69c1925b95780b03f8bf5d90aaba7e1c3ae92087
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersbz
bugs977072
milestone30.0a1
Bug 977072 - attributes in MutationRecord can be [Constant], r=bz
dom/webidl/MutationObserver.webidl
--- a/dom/webidl/MutationObserver.webidl
+++ b/dom/webidl/MutationObserver.webidl
@@ -3,26 +3,35 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/.
  *
  * The origin of this IDL file is
  * http://dom.spec.whatwg.org
  */
 
 interface MutationRecord {
+  [Constant]
   readonly attribute DOMString type;
   // .target is not nullable per the spec, but in order to prevent crashes,
   // if there are GC/CC bugs in Gecko, we let the property to be null.
+  [Constant]
   readonly attribute Node? target;
+  [Constant]
   readonly attribute NodeList addedNodes;
+  [Constant]
   readonly attribute NodeList removedNodes;
+  [Constant]
   readonly attribute Node? previousSibling;
+  [Constant]
   readonly attribute Node? nextSibling;
+  [Constant]
   readonly attribute DOMString? attributeName;
+  [Constant]
   readonly attribute DOMString? attributeNamespace;
+  [Constant]
   readonly attribute DOMString? oldValue;
 };
 
 [Constructor(MutationCallback mutationCallback)]
 interface MutationObserver {
   [Throws]
   void observe(Node target, optional MutationObserverInit options);
   void disconnect();