Bug 1241899 - Make SVGZoomAndPan [NoInterfaceObject]. r=cam r=peterv
authorRobert Longson <longsonr@gmail.com>
Sun, 16 Oct 2016 12:24:25 +0100
changeset 318107 cb878465645099cd790e703a9d4eb84fbd358d92
parent 318106 94f47e1077442d749f7fe7de027fcbdfeacf3daf
child 318108 bd7461a1ed09447f4d38b4911f0e83933f9d875b
push id82855
push userlongsonr@gmail.com
push dateSun, 16 Oct 2016 11:24:35 +0000
treeherdermozilla-inbound@cb8784656450 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscam, peterv
bugs1241899
milestone52.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 1241899 - Make SVGZoomAndPan [NoInterfaceObject]. r=cam r=peterv
dom/webidl/SVGSVGElement.webidl
dom/webidl/SVGViewElement.webidl
dom/webidl/SVGZoomAndPan.webidl
dom/webidl/SVGZoomAndPanValues.webidl
dom/webidl/moz.build
--- a/dom/webidl/SVGSVGElement.webidl
+++ b/dom/webidl/SVGSVGElement.webidl
@@ -71,10 +71,10 @@ interface SVGSVGElement : SVGGraphicsEle
   SVGTransform createSVGTransform();
   [NewObject]
   SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
   [UseCounter]
   Element? getElementById(DOMString elementId);
 };
 
 SVGSVGElement implements SVGFitToViewBox;
-SVGSVGElement implements SVGZoomAndPan;
+SVGSVGElement implements SVGZoomAndPanValues;
 
--- a/dom/webidl/SVGViewElement.webidl
+++ b/dom/webidl/SVGViewElement.webidl
@@ -10,10 +10,10 @@
  * liability, trademark and document use rules apply.
  */
 
 interface SVGViewElement : SVGElement {
   readonly attribute SVGStringList viewTarget;
 };
 
 SVGViewElement implements SVGFitToViewBox;
-SVGViewElement implements SVGZoomAndPan;
+SVGViewElement implements SVGZoomAndPanValues;
 
--- a/dom/webidl/SVGZoomAndPan.webidl
+++ b/dom/webidl/SVGZoomAndPan.webidl
@@ -6,18 +6,11 @@
  * The origin of this IDL file is
  * http://www.w3.org/TR/SVG2/
  *
  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
  * liability, trademark and document use rules apply.
  */
 
 interface SVGZoomAndPan {
-
-  // Zoom and Pan Types
-  const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0;
-  const unsigned short SVG_ZOOMANDPAN_DISABLE = 1;
-  const unsigned short SVG_ZOOMANDPAN_MAGNIFY = 2;
-
-  [SetterThrows]
-  attribute unsigned short zoomAndPan;
 };
 
+SVGZoomAndPan implements SVGZoomAndPanValues;
copy from dom/webidl/SVGZoomAndPan.webidl
copy to dom/webidl/SVGZoomAndPanValues.webidl
--- a/dom/webidl/SVGZoomAndPan.webidl
+++ b/dom/webidl/SVGZoomAndPanValues.webidl
@@ -5,17 +5,18 @@
  *
  * The origin of this IDL file is
  * http://www.w3.org/TR/SVG2/
  *
  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
  * liability, trademark and document use rules apply.
  */
 
-interface SVGZoomAndPan {
+[NoInterfaceObject]
+interface SVGZoomAndPanValues {
 
   // Zoom and Pan Types
   const unsigned short SVG_ZOOMANDPAN_UNKNOWN = 0;
   const unsigned short SVG_ZOOMANDPAN_DISABLE = 1;
   const unsigned short SVG_ZOOMANDPAN_MAGNIFY = 2;
 
   [SetterThrows]
   attribute unsigned short zoomAndPan;
--- a/dom/webidl/moz.build
+++ b/dom/webidl/moz.build
@@ -545,16 +545,17 @@ WEBIDL_FILES = [
     'SVGTransform.webidl',
     'SVGTransformList.webidl',
     'SVGTSpanElement.webidl',
     'SVGUnitTypes.webidl',
     'SVGURIReference.webidl',
     'SVGUseElement.webidl',
     'SVGViewElement.webidl',
     'SVGZoomAndPan.webidl',
+    'SVGZoomAndPanValues.webidl',
     'SVGZoomEvent.webidl',
     'SystemUpdate.webidl',
     'TCPServerSocket.webidl',
     'TCPServerSocketEvent.webidl',
     'TCPSocket.webidl',
     'TCPSocketErrorEvent.webidl',
     'TCPSocketEvent.webidl',
     'Telephony.webidl',