Skip to content

Commit d1f4759

Browse files
author
Simon Pieters
committed
[cssom-view] Make DOMRect use unrestricted double like DOMPoint. http://lists.w3.org/Archives/Public/www-style/2013Sep/0517.html
1 parent 0f74da5 commit d1f4759

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

cssom-view/Overview.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,14 +1615,15 @@ <h3 id="the-domrect-interface"><span class="secno">11.2 </span>The <code title="
16151615
<p>Objects implementing the <code><a href="#domrect">DOMRect</a></code> interface represent a rectangular box. The type of box is specified by the method that returns a
16161616
<code><a href="#domrect">DOMRect</a></code> object. A <code><a href="#domrect">DOMRect</a></code> object has a <i>readonly</i> flag, which is unset unless otherwise stated.</p>
16171617

1618-
<pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(double left, double top, double width, double height)]
1618+
<pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(unrestricted double left, unrestricted double top, unrestricted double width, <!--
1619+
-->unrestricted double height)]
16191620
interface <dfn id="domrect">DOMRect</dfn> {
1620-
attribute double <a href="#dom-domrect-top" title="dom-DOMRect-top">top</a>;
1621-
attribute double <a href="#dom-domrect-right" title="dom-DOMRect-right">right</a>;
1622-
attribute double <a href="#dom-domrect-bottom" title="dom-DOMRect-bottom">bottom</a>;
1623-
attribute double <a href="#dom-domrect-left" title="dom-DOMRect-left">left</a>;
1624-
attribute double <a href="#dom-domrect-width" title="dom-DOMRect-width">width</a>;
1625-
attribute double <a href="#dom-domrect-height" title="dom-DOMRect-height">height</a>;
1621+
attribute unrestricted double <a href="#dom-domrect-top" title="dom-DOMRect-top">top</a>;
1622+
attribute unrestricted double <a href="#dom-domrect-right" title="dom-DOMRect-right">right</a>;
1623+
attribute unrestricted double <a href="#dom-domrect-bottom" title="dom-DOMRect-bottom">bottom</a>;
1624+
attribute unrestricted double <a href="#dom-domrect-left" title="dom-DOMRect-left">left</a>;
1625+
attribute unrestricted double <a href="#dom-domrect-width" title="dom-DOMRect-width">width</a>;
1626+
attribute unrestricted double <a href="#dom-domrect-height" title="dom-DOMRect-height">height</a>;
16261627
};</pre>
16271628

16281629
<p class="atrisk">The <dfn id="dom-domrect" title="dom-DOMRect"><code>DOMRect(<var>left</var>, <var>top</var>, <var>width</var>, <var>height</var>)</code></dfn> constructor, when

cssom-view/Overview.src.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,14 +1573,15 @@ <h3>The <code title>DOMRect</code> Interface</h3>
15731573
<p>Objects implementing the <code>DOMRect</code> interface represent a rectangular box. The type of box is specified by the method that returns a
15741574
<code>DOMRect</code> object. A <code>DOMRect</code> object has a <i>readonly</i> flag, which is unset unless otherwise stated.</p>
15751575

1576-
<pre class=idl>[<span title=dom-DOMRect>Constructor</span>(double left, double top, double width, double height)]
1576+
<pre class=idl>[<span title=dom-DOMRect>Constructor</span>(unrestricted double left, unrestricted double top, unrestricted double width, <!--
1577+
-->unrestricted double height)]
15771578
interface <dfn>DOMRect</dfn> {
1578-
attribute double <span title=dom-DOMRect-top>top</span>;
1579-
attribute double <span title=dom-DOMRect-right>right</span>;
1580-
attribute double <span title=dom-DOMRect-bottom>bottom</span>;
1581-
attribute double <span title=dom-DOMRect-left>left</span>;
1582-
attribute double <span title=dom-DOMRect-width>width</span>;
1583-
attribute double <span title=dom-DOMRect-height>height</span>;
1579+
attribute unrestricted double <span title=dom-DOMRect-top>top</span>;
1580+
attribute unrestricted double <span title=dom-DOMRect-right>right</span>;
1581+
attribute unrestricted double <span title=dom-DOMRect-bottom>bottom</span>;
1582+
attribute unrestricted double <span title=dom-DOMRect-left>left</span>;
1583+
attribute unrestricted double <span title=dom-DOMRect-width>width</span>;
1584+
attribute unrestricted double <span title=dom-DOMRect-height>height</span>;
15841585
};</pre>
15851586

15861587
<p class=atrisk>The <dfn title=dom-DOMRect><code>DOMRect(<var>left</var>, <var>top</var>, <var>width</var>, <var>height</var>)</code></dfn> constructor, when

0 commit comments

Comments
 (0)