Skip to content

Commit c94ded2

Browse files
author
Simon Pieters
committed
[cssom-view] Introduce no-argument constructor for DOMRect for parity with SVGRect.
1 parent 6a58c1c commit c94ded2

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

cssom-view/Overview.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<h1>CSSOM View Module</h1>
1818

19-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 30 September 2013</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 1 October 2013</h2>
2020

2121
<dl>
2222

@@ -83,7 +83,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
8383
can be found in the <a href="http://www.w3.org/TR/">W3C technical reports
8484
index at http://www.w3.org/TR/.</a></em>
8585

86-
<p>This is the 30 September 2013 Editor's Draft of CSSOM View. Please send
86+
<p>This is the 1 October 2013 Editor's Draft of CSSOM View. Please send
8787
comments to
8888
<a href="mailto:www-style@w3.org?subject=%5Bcssom-view%5D%20">www-style@w3.org</a>
8989
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
@@ -1633,7 +1633,8 @@ <h3 id="the-domrect-and-domrectreadonly-interfaces"><span class="secno">11.2 </s
16331633
<dd><p>The height of the rectangle. Can be negative.
16341634
</dl>
16351635

1636-
<pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
1636+
<pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>,
1637+
<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
16371638
-->unrestricted double height)]
16381639
interface <dfn id="domrect">DOMRect</dfn> {
16391640
attribute unrestricted double <a href="#dom-domrect-x" title="dom-DOMRect-x">x</a>;
@@ -1663,6 +1664,7 @@ <h3 id="the-domrect-and-domrectreadonly-interfaces"><span class="secno">11.2 </s
16631664
invoked, must run the following steps:
16641665

16651666
<ol>
1667+
<li><p>If invoked with no arguments, let <var>x</var>, <var>y</var>, <var>width</var> and <var>height</var> be zero.
16661668
<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>,
16671669
<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
16681670
<var>width</var> and <a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> set to <var>height</var>.

cssom-view/Overview.src.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,8 @@ <h3>The <code title>DOMRect</code> and <code title>DOMRectReadOnly</code> Interf
15911591
<dd><p>The height of the rectangle. Can be negative.
15921592
</dl>
15931593

1594-
<pre class=idl>[<span title=dom-DOMRect>Constructor</span>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
1594+
<pre class=idl>[<span title=dom-DOMRect>Constructor</span>,
1595+
<span title=dom-DOMRect>Constructor</span>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
15951596
-->unrestricted double height)]
15961597
interface <dfn>DOMRect</dfn> {
15971598
attribute unrestricted double <span title=dom-DOMRect-x>x</span>;
@@ -1621,6 +1622,7 @@ <h3>The <code title>DOMRect</code> and <code title>DOMRectReadOnly</code> Interf
16211622
invoked, must run the following steps:
16221623

16231624
<ol>
1625+
<li><p>If invoked with no arguments, let <var>x</var>, <var>y</var>, <var>width</var> and <var>height</var> be zero.
16241626
<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>,
16251627
<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
16261628
<var>width</var> and <span title=concept-geometry-rectangle-height>height</span> set to <var>height</var>.

0 commit comments

Comments
 (0)