Add unit accessors for SVGAnimatedLengthList too.
authorCameron McCormack <cam@mcc.id.au>
Wed, 06 Feb 2013 16:39:58 +1100
changeset 435 db28315a2167
parent 434 ef2fa575d779
child 436 b9fe6a485404
Add unit accessors for SVGAnimatedLengthList too.
master/changes.html
master/types.html
--- a/master/changes.html	Wed Feb 06 16:17:14 2013 +1100
+++ b/master/changes.html	Wed Feb 06 16:39:58 2013 +1100
@@ -65,7 +65,7 @@
 
   <li>Added <a href="types.html#__svg__SVGLocatableElement__getStrokeBBox">getStrokeBBox</a> to get the tight stroke bounding box.</li>
 
-  <li>Added base value accessors on <a>SVGAnimatedLength</a> for each of the CSS length units supported.</li>
+  <li>Added base value accessors on <a>SVGAnimatedLength</a> and <a>SVGAnimatedLengthList</a> for each of the CSS length units supported.</li>
 </ul>
 
 <h3 id="structure">Document Structure chapter</h3>
--- a/master/types.html	Wed Feb 06 16:17:14 2013 +1100
+++ b/master/types.html	Wed Feb 06 16:39:58 2013 +1100
@@ -3353,7 +3353,21 @@
 <pre class="idl">interface <b>SVGAnimatedLengthList</b> {
   readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGLengthList">SVGLengthList</a> <a href="types.html#__svg__SVGAnimatedLengthList__baseVal">baseVal</a>;
   readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGLengthList">SVGLengthList</a> <a href="types.html#__svg__SVGAnimatedLengthList__animVal">animVal</a>;
-};</pre><dl class="interface">
+
+           attribute float <a href="#__svg__SVGAnimatedLengthList__cm">cm</a>;
+           attribute float <a href="#__svg__SVGAnimatedLengthList__em">em</a>;
+           attribute float <a href="#__svg__SVGAnimatedLengthList__ex">ex</a>;
+           attribute float <a href="#__svg__SVGAnimatedLengthList__in">in</a>;
+           attribute float <a href="#__svg__SVGAnimatedLengthList__mm">mm</a>;
+           attribute float <a href="#__svg__SVGAnimatedLengthList__pc">pc</a>;
+           attribute float <a href="#__svg__SVGAnimatedLengthList__pt">pt</a>;
+           attribute float <a href="#__svg__SVGAnimatedLengthList__px">px</a>;
+};</pre>
+
+<p class="issue">If any changes to the unit accessors are made to <a>SVGAnimatedLength</a>
+they should be made here too.</p>
+
+<dl class="interface">
 <dt class="attributes-header">Attributes:</dt>
 <dd>
 <dl class="attributes">
@@ -3378,6 +3392,84 @@
 
 </div>
 </dd>
+
+
+<div class="ready-for-wg-review">
+
+<dt id="__svg__SVGAnimatedLengthList__cm" class="attribute"><b>cm</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>cm</b>.
+  If the base value list is empty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>cm</b> and to have the specified magnitude.  If the base value list is empty, it adds
+  a new <a>SVGLength</a> object with the given <b>cm</b> value.</div>
+</dd>
+
+<dt id="__svg__SVGAnimatedLengthList__em" class="attribute"><b>em</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>em</b>.
+  If the base value list is empty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>em</b> and to have the specified magnitude.  If the base value list is empty, it adds
+  a new <a>SVGLength</a> object with the given <b>em</b> value.</div>
+</dd>
+
+<dt id="__svg__SVGAnimatedLengthList__ex" class="attribute"><b>ex</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>ex</b>.
+  If the base value list is expty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>ex</b> and to have the specified magnitude.  If the base value list is expty, it adds
+  a new <a>SVGLength</a> object with the given <b>ex</b> value.</div>
+</dd>
+
+<dt id="__svg__SVGAnimatedLengthList__in" class="attribute"><b>in</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>in</b>.
+  If the base value list is inpty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>in</b> and to have the specified magnitude.  If the base value list is inpty, it adds
+  a new <a>SVGLength</a> object with the given <b>in</b> value.</div>
+</dd>
+
+<dt id="__svg__SVGAnimatedLengthList__mm" class="attribute"><b>mm</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>mm</b>.
+  If the base value list is empty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>mm</b> and to have the specified magnitude.  If the base value list is empty, it adds
+  a new <a>SVGLength</a> object with the given <b>mm</b> value.</div>
+</dd>
+
+<dt id="__svg__SVGAnimatedLengthList__pc" class="attribute"><b>pc</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>pc</b>.
+  If the base value list is empty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>pc</b> and to have the specified magnitude.  If the base value list is empty, it adds
+  a new <a>SVGLength</a> object with the given <b>pc</b> value.</div>
+</dd>
+
+<dt id="__svg__SVGAnimatedLengthList__pt" class="attribute"><b>pt</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>pt</b>.
+  If the base value list is empty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>pt</b> and to have the specified magnitude.  If the base value list is empty, it adds
+  a new <a>SVGLength</a> object with the given <b>pt</b> value.</div>
+</dd>
+
+<dt id="__svg__SVGAnimatedLengthList__px" class="attribute"><b>px</b><span class="idl-type-parenthetical"> (float)</span></dt>
+<dd class="attribute">
+  <div>On getting, returns the value of the first <a>SVGLength</a> of the animated length's base value in <b>px</b>.
+  If the base value list is empty, returns 0.
+  On setting, changes the value of the animated length's first <a>SVGLength</a> value to be in
+  <b>px</b> and to have the specified magnitude.  If the base value list is empty, it adds
+  a new <a>SVGLength</a> object with the given <b>px</b> value.</div>
+</dd>
+
+</div>
+
 </dl>
 </dd>
 </dl>