Bug 968923 - part 5a - add use counters for SVGSVGElement and CSS properties for testing purposes; r=bz
authorNathan Froyd <froydnj@mozilla.com>
Fri, 05 Jun 2015 14:07:25 -0400
changeset 258247 185b4c796b1c2432e3f801d2b5a20a95c391608f
parent 258246 f58b8e4e584353ddcb733f9c163e88cf17947c4a
child 258248 8161b137af4a0146418fa216082abc8c67d5ee24
push id29249
push userryanvm@gmail.com
push dateWed, 19 Aug 2015 11:17:27 +0000
treeherdermozilla-central@706b23a03d1c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs968923
milestone43.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 968923 - part 5a - add use counters for SVGSVGElement and CSS properties for testing purposes; r=bz
dom/base/UseCounters.conf
dom/webidl/SVGSVGElement.webidl
--- a/dom/base/UseCounters.conf
+++ b/dom/base/UseCounters.conf
@@ -32,8 +32,13 @@
 // beyond being listed below.
 //
 // You might reasonably ask why we have this file and we require
 // annotating things with [UseCounter] in the relevant WebIDL file as
 // well.  Generating things from bindings codegen and ensuring all the
 // dependencies were correct would have been rather difficult, and
 // annotating the WebIDL files does nothing for identifying CSS
 // property usage, which we would also like to track.
+
+method SVGSVGElement.getElementById
+attribute SVGSVGElement.currentScale
+property Fill
+property FillOpacity
--- a/dom/webidl/SVGSVGElement.webidl
+++ b/dom/webidl/SVGSVGElement.webidl
@@ -28,16 +28,17 @@ interface SVGSVGElement : SVGGraphicsEle
   [Constant]
   readonly attribute float pixelUnitToMillimeterY;
   [Constant]
   readonly attribute float screenPixelToMillimeterX;
   [Constant]
   readonly attribute float screenPixelToMillimeterY;
   readonly attribute boolean useCurrentView;
   // readonly attribute SVGViewSpec currentView;
+  [UseCounter]
            attribute float currentScale;
   readonly attribute SVGPoint currentTranslate;
 
   [DependsOn=Nothing, Affects=Nothing]
   unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
   [DependsOn=Nothing, Affects=Nothing]
   void unsuspendRedraw(unsigned long suspendHandleID);
   [DependsOn=Nothing, Affects=Nothing]
@@ -65,14 +66,15 @@ interface SVGSVGElement : SVGGraphicsEle
   [NewObject]
   SVGMatrix createSVGMatrix();
   [NewObject]
   SVGRect createSVGRect();
   [NewObject]
   SVGTransform createSVGTransform();
   [NewObject]
   SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
+  [UseCounter]
   Element? getElementById(DOMString elementId);
 };
 
 SVGSVGElement implements SVGFitToViewBox;
 SVGSVGElement implements SVGZoomAndPan;