Bug 1125647 - mark some webidl attributes as [Pure]. r=bzbarsky
authorRobert Longson <longsonr@gmail.com>
Tue, 27 Jan 2015 13:39:48 +0000
changeset 226048 c579974cfa318f1e981fd9b64f4fc61da7d4281d
parent 226047 0db65ae029daf2e9aea8dfbb3bc640ebdb57a963
child 226049 01c2c9ee7390c91c8c1f02949e4d994e71ea9bba
push id28185
push userkwierso@gmail.com
push dateWed, 28 Jan 2015 00:05:15 +0000
treeherdermozilla-central@b2b10231606b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1125647
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1125647 - mark some webidl attributes as [Pure]. r=bzbarsky
dom/webidl/SVGDocument.webidl
dom/webidl/SVGPathSeg.webidl
--- a/dom/webidl/SVGDocument.webidl
+++ b/dom/webidl/SVGDocument.webidl
@@ -5,11 +5,11 @@
  *
  * The origin of this IDL file is:
  * dom/interfaces/svg/nsIDOMSVGDocument.idl
  */
 
 interface SVGDocument : Document {
   [Throws]
   readonly attribute DOMString domain;
-  [Throws]
+  [Pure, Throws]
   readonly attribute SVGElement? rootElement;
 };
--- a/dom/webidl/SVGPathSeg.webidl
+++ b/dom/webidl/SVGPathSeg.webidl
@@ -29,17 +29,19 @@ interface SVGPathSeg {
   const unsigned short PATHSEG_LINETO_HORIZONTAL_REL = 13;
   const unsigned short PATHSEG_LINETO_VERTICAL_ABS = 14;
   const unsigned short PATHSEG_LINETO_VERTICAL_REL = 15;
   const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
   const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
   const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
   const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
 
+  [Pure]
   readonly attribute unsigned short pathSegType;
+  [Pure]
   readonly attribute DOMString pathSegTypeAsLetter;
 };
 
 interface SVGPathSegClosePath : SVGPathSeg {
 };
 
 interface SVGPathSegMovetoAbs : SVGPathSeg {
   [SetterThrows]