[cssom-view] Introduce no-argument constructor for DOMRect for parity with SVGRect.

Tue, 01 Oct 2013 11:36:28 +0200

author
Simon Pieters <simonp@opera.com>
date
Tue, 01 Oct 2013 11:36:28 +0200
changeset 9309
3eb9884be51c
parent 9308
de08f035a15b
child 9310
533b2f3d29b7

[cssom-view] Introduce no-argument constructor for DOMRect for parity with SVGRect.

cssom-view/Overview.html file | annotate | diff | comparison | revisions
cssom-view/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/cssom-view/Overview.html	Tue Oct 01 09:20:17 2013 +0900
     1.2 +++ b/cssom-view/Overview.html	Tue Oct 01 11:36:28 2013 +0200
     1.3 @@ -16,7 +16,7 @@
     1.4  
     1.5   <h1>CSSOM View Module</h1>
     1.6  
     1.7 - <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 30 September 2013</h2>
     1.8 + <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 1 October 2013</h2>
     1.9  
    1.10   <dl>
    1.11  
    1.12 @@ -83,7 +83,7 @@
    1.13  can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
    1.14  index at http://www.w3.org/TR/.</a></em>
    1.15  
    1.16 -<p>This is the 30 September 2013 Editor's Draft of CSSOM View. Please send
    1.17 +<p>This is the 1 October 2013 Editor's Draft of CSSOM View. Please send
    1.18  comments to
    1.19  <a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
    1.20  (<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
    1.21 @@ -1633,7 +1633,8 @@
    1.22   <dd><p>The height of the rectangle. Can be negative.
    1.23  </dl>
    1.24  
    1.25 -<pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
    1.26 +<pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>,
    1.27 +<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
    1.28  -->unrestricted double height)]
    1.29  interface <dfn id="domrect">DOMRect</dfn> {
    1.30             attribute unrestricted double <a href="#dom-domrect-x" title="dom-DOMRect-x">x</a>;
    1.31 @@ -1663,6 +1664,7 @@
    1.32  invoked, must run the following steps:
    1.33  
    1.34  <ol>
    1.35 + <li><p>If invoked with no arguments, let <var>x</var>, <var>y</var>, <var>width</var> and <var>height</var> be zero.
    1.36   <li><p>Return a new <code><a href="#domrect">DOMRect</a></code> object with <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x coordinate</a> set to <var>x</var>,
    1.37   <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">y coordinate</a> set to <var>y</var>, <a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a> set to
    1.38   <var>width</var> and <a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> set to <var>height</var>.
     2.1 --- a/cssom-view/Overview.src.html	Tue Oct 01 09:20:17 2013 +0900
     2.2 +++ b/cssom-view/Overview.src.html	Tue Oct 01 11:36:28 2013 +0200
     2.3 @@ -1591,7 +1591,8 @@
     2.4   <dd><p>The height of the rectangle. Can be negative.
     2.5  </dl>
     2.6  
     2.7 -<pre class=idl>[<span title=dom-DOMRect>Constructor</span>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
     2.8 +<pre class=idl>[<span title=dom-DOMRect>Constructor</span>,
     2.9 +<span title=dom-DOMRect>Constructor</span>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
    2.10  -->unrestricted double height)]
    2.11  interface <dfn>DOMRect</dfn> {
    2.12             attribute unrestricted double <span title=dom-DOMRect-x>x</span>;
    2.13 @@ -1621,6 +1622,7 @@
    2.14  invoked, must run the following steps:
    2.15  
    2.16  <ol>
    2.17 + <li><p>If invoked with no arguments, let <var>x</var>, <var>y</var>, <var>width</var> and <var>height</var> be zero.
    2.18   <li><p>Return a new <code>DOMRect</code> object with <span title=concept-geometry-rectangle-x-coordinate>x coordinate</span> set to <var>x</var>,
    2.19   <span title=concept-geometry-rectangle-x-coordinate>y coordinate</span> set to <var>y</var>, <span title=concept-geometry-rectangle-width>width</span> set to
    2.20   <var>width</var> and <span title=concept-geometry-rectangle-height>height</span> set to <var>height</var>.

mercurial