Skip to content

Commit 8d01810

Browse files
author
Simon Pieters
committed
[cssom-view] Rename DOMRectImmutable to DOMRectReadOnly since the DOMQuad#bounds rect is live. http://lists.w3.org/Archives/Public/www-style/2013Sep/0773.html
1 parent 3851b16 commit 8d01810

2 files changed

Lines changed: 43 additions & 43 deletions

File tree

cssom-view/Overview.html

Lines changed: 23 additions & 23 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 27 September 2013</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 30 September 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 27 September 2013 Editor's Draft of CSSOM View. Please send
86+
<p>This is the 30 September 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>)
@@ -140,7 +140,7 @@ <h2 class="no-num no-toc" id="toc">Table of Contents</h2>
140140
<li><a href="#geometry"><span class="secno">11 </span>Geometry</a>
141141
<ul class="toc">
142142
<li><a href="#the-domrectlist-interface"><span class="secno">11.1 </span>The <code title="">DOMRectList</code> Interface</a></li>
143-
<li><a href="#the-domrect-and-domrectimmutable-interfaces"><span class="secno">11.2 </span>The <code title="">DOMRect</code> and <code title="">DOMRectImmutable</code> Interfaces</a></li>
143+
<li><a href="#the-domrect-and-domrectreadonly-interfaces"><span class="secno">11.2 </span>The <code title="">DOMRect</code> and <code title="">DOMRectReadOnly</code> Interfaces</a></li>
144144
<li><a class="atrisk" href="#the-dompoint-interface"><span class="secno">11.3 </span>The <code title="">DOMPoint</code> Interface</a></li>
145145
<li><a class="atrisk" href="#the-domquad-interface"><span class="secno">11.4 </span>The <code title="">DOMQuad</code> Interface</a></li>
146146
<li><a class="atrisk" href="#the-geometryutils-interface"><span class="secno">11.5 </span>The <code title="">GeometryUtils</code> Interface</a></ul></li>
@@ -1610,11 +1610,11 @@ <h3 id="the-domrectlist-interface"><span class="secno">11.1 </span>The <code tit
16101610
greater than the number of <code><a href="#domrect">DOMRect</a></code> objects associated with the object. Otherwise, the <code><a href="#domrect">DOMRect</a></code> object at
16111611
<var>index</var> must be returned.</p>
16121612

1613-
<h3 id="the-domrect-and-domrectimmutable-interfaces"><span class="secno">11.2 </span>The <code title="">DOMRect</code> and <code title="">DOMRectImmutable</code> Interfaces</h3>
1613+
<h3 id="the-domrect-and-domrectreadonly-interfaces"><span class="secno">11.2 </span>The <code title="">DOMRect</code> and <code title="">DOMRectReadOnly</code> Interfaces</h3>
16141614

1615-
<p>Objects implementing the <code><a href="#domrect">DOMRect</a></code> or <code><a href="#domrectimmutable">DOMRectImmutable</a></code> interface represent a rectangular box. The type of box is specified by the
1616-
method or attribute that returns a <code><a href="#domrect">DOMRect</a></code> or <code><a href="#domrectimmutable">DOMRectImmutable</a></code> object. The interfaces are identical except the attributes of
1617-
<code><a href="#domrectimmutable">DOMRectImmutable</a></code> are readonly.
1615+
<p>Objects implementing the <code><a href="#domrect">DOMRect</a></code> or <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> interface represent a rectangular box. The type of box is specified by the
1616+
method or attribute that returns a <code><a href="#domrect">DOMRect</a></code> or <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> object. The interfaces are identical except the attributes of
1617+
<code><a href="#domrectreadonly">DOMRectReadOnly</a></code> are readonly.
16181618

16191619
<pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(unrestricted double left, unrestricted double top, unrestricted double width, <!--
16201620
-->unrestricted double height)]
@@ -1627,16 +1627,16 @@ <h3 id="the-domrect-and-domrectimmutable-interfaces"><span class="secno">11.2 </
16271627
attribute unrestricted double <a href="#dom-domrect-height" title="dom-DOMRect-height">height</a>;
16281628
};
16291629

1630-
interface <dfn id="domrectimmutable">DOMRectImmutable</dfn> {
1631-
readonly attribute unrestricted double <a href="#dom-domrectimmutable-top" title="dom-DOMRectImmutable-top">top</a>;
1632-
readonly attribute unrestricted double <a href="#dom-domrectimmutable-right" title="dom-DOMRectImmutable-right">right</a>;
1633-
readonly attribute unrestricted double <a href="#dom-domrectimmutable-bottom" title="dom-DOMRectImmutable-bottom">bottom</a>;
1634-
readonly attribute unrestricted double <a href="#dom-domrectimmutable-left" title="dom-DOMRectImmutable-left">left</a>;
1635-
readonly attribute unrestricted double <a href="#dom-domrectimmutable-width" title="dom-DOMRectImmutable-width">width</a>;
1636-
readonly attribute unrestricted double <a href="#dom-domrectimmutable-height" title="dom-DOMRectImmutable-height">height</a>;
1630+
interface <dfn id="domrectreadonly">DOMRectReadOnly</dfn> {
1631+
readonly attribute unrestricted double <a href="#dom-domrectreadonly-top" title="dom-DOMRectReadOnly-top">top</a>;
1632+
readonly attribute unrestricted double <a href="#dom-domrectreadonly-right" title="dom-DOMRectReadOnly-right">right</a>;
1633+
readonly attribute unrestricted double <a href="#dom-domrectreadonly-bottom" title="dom-DOMRectReadOnly-bottom">bottom</a>;
1634+
readonly attribute unrestricted double <a href="#dom-domrectreadonly-left" title="dom-DOMRectReadOnly-left">left</a>;
1635+
readonly attribute unrestricted double <a href="#dom-domrectreadonly-width" title="dom-DOMRectReadOnly-width">width</a>;
1636+
readonly attribute unrestricted double <a href="#dom-domrectreadonly-height" title="dom-DOMRectReadOnly-height">height</a>;
16371637
};
16381638

1639-
typedef (<a href="#domrect">DOMRect</a> or <a href="#domrectimmutable">DOMRectImmutable</a>) <dfn id="domrectany">DOMRectAny</dfn>;</pre>
1639+
typedef (<a href="#domrect">DOMRect</a> or <a href="#domrectreadonly">DOMRectReadOnly</a>) <dfn id="domrectany">DOMRectAny</dfn>;</pre>
16401640

16411641
<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
16421642
invoked, must run the following steps:
@@ -1669,10 +1669,10 @@ <h3 id="the-domrect-and-domrectimmutable-interfaces"><span class="secno">11.2 </
16691669
minus <code title="dom-DOMRect-top"><a href="#dom-domrect-top">top</a></code>. On setting, the <code title="dom-DOMRect-bottom"><a href="#dom-domrect-bottom">bottom</a></code> attribute must be set to the new value plus the value
16701670
of <code title="dom-DOMRect-top"><a href="#dom-domrect-top">top</a></code>.</p>
16711671

1672-
<p>The <dfn id="dom-domrectimmutable-top" title="dom-DOMRectImmutable-top"><code>top</code></dfn>, <dfn id="dom-domrectimmutable-right" title="dom-DOMRectImmutable-right"><code>right</code></dfn>,
1673-
<dfn id="dom-domrectimmutable-bottom" title="dom-DOMRectImmutable-bottom"><code>bottom</code></dfn>, <dfn id="dom-domrectimmutable-left" title="dom-DOMRectImmutable-left"><code>left</code></dfn>,
1674-
<dfn id="dom-domrectimmutable-width" title="dom-DOMRectImmutable-width"><code>width</code></dfn> and <dfn id="dom-domrectimmutable-height" title="dom-DOMRectImmutable-height"><code>height</code></dfn> attributes of the
1675-
<code><a href="#domrectimmutable">DOMRectImmutable</a></code> interface, on getting, must behave the same as the attribute of the same name on the <code><a href="#domrect">DOMRect</a></code> interface.
1672+
<p>The <dfn id="dom-domrectreadonly-top" title="dom-DOMRectReadOnly-top"><code>top</code></dfn>, <dfn id="dom-domrectreadonly-right" title="dom-DOMRectReadOnly-right"><code>right</code></dfn>,
1673+
<dfn id="dom-domrectreadonly-bottom" title="dom-DOMRectReadOnly-bottom"><code>bottom</code></dfn>, <dfn id="dom-domrectreadonly-left" title="dom-DOMRectReadOnly-left"><code>left</code></dfn>,
1674+
<dfn id="dom-domrectreadonly-width" title="dom-DOMRectReadOnly-width"><code>width</code></dfn> and <dfn id="dom-domrectreadonly-height" title="dom-DOMRectReadOnly-height"><code>height</code></dfn> attributes of the
1675+
<code><a href="#domrectreadonly">DOMRectReadOnly</a></code> interface, on getting, must behave the same as the attribute of the same name on the <code><a href="#domrect">DOMRect</a></code> interface.
16761676

16771677

16781678
<h3 class="atrisk" id="the-dompoint-interface"><span class="secno">11.3 </span>The <code title="">DOMPoint</code> Interface</h3>
@@ -1727,7 +1727,7 @@ <h3 class="atrisk" id="the-dompoint-interface"><span class="secno">11.3 </span>T
17271727
<h3 class="atrisk" id="the-domquad-interface"><span class="secno">11.4 </span>The <code title="">DOMQuad</code> Interface</h3>
17281728

17291729
<p>Objects implementing the <code><a href="#domquad">DOMQuad</a></code> interface represents a quadrilateral shape. <code><a href="#domquad">DOMQuad</a></code> objects have an <dfn id="associated-bounding-rectangle">associated
1730-
bounding rectangle</dfn> set to a <code><a href="#domrectimmutable">DOMRectImmutable</a></code> object when created.
1730+
bounding rectangle</dfn> set to a <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> object when created.
17311731

17321732
<pre class="idl">[<a href="#dom-domquad" title="dom-DOMQuad">Constructor</a>(<a href="#dompointinit">DOMPointInit</a> p1, <a href="#dompointinit">DOMPointInit</a> p2, <!--
17331733
--><a href="#dompointinit">DOMPointInit</a> p3, <a href="#dompointinit">DOMPointInit</a> p4),
@@ -1737,7 +1737,7 @@ <h3 class="atrisk" id="the-domquad-interface"><span class="secno">11.4 </span>Th
17371737
[SameObject] readonly attribute <a href="#dompoint">DOMPoint</a> <a href="#dom-domquad-p2" title="dom-DOMQuad-p2">p2</a>;
17381738
[SameObject] readonly attribute <a href="#dompoint">DOMPoint</a> <a href="#dom-domquad-p3" title="dom-DOMQuad-p3">p3</a>;
17391739
[SameObject] readonly attribute <a href="#dompoint">DOMPoint</a> <a href="#dom-domquad-p4" title="dom-DOMQuad-p4">p4</a>;
1740-
[SameObject] readonly attribute <a href="#domrectimmutable">DOMRectImmutable</a> <a href="#dom-domquad-bounds" title="dom-DOMQuad-bounds">bounds</a>;
1740+
[SameObject] readonly attribute <a href="#domrectreadonly">DOMRectReadOnly</a> <a href="#dom-domquad-bounds" title="dom-DOMQuad-bounds">bounds</a>;
17411741
};</pre>
17421742

17431743
<p>The <dfn id="dom-domquad" title="dom-DOMQuad"><code>DOMQuad()</code></dfn> constructor, when invoked, must run the following steps:
@@ -1761,7 +1761,7 @@ <h3 class="atrisk" id="the-domquad-interface"><span class="secno">11.4 </span>Th
17611761
<li><p>Let <var>point 4</var> be a new <code><a href="#dompoint">DOMPoint</a></code> object with <code title="dom-DOMPoint-x"><a href="#dom-dompoint-x">x</a></code> set to <var>left</var>,
17621762
<code title="dom-DOMPoint-y"><a href="#dom-dompoint-y">y</a></code> set to <var>bottom</var>, <code title="dom-DOMPoint-z"><a href="#dom-dompoint-z">z</a></code> set to zero and <code title="dom-DOMPoint-w"><a href="#dom-dompoint-w">w</a></code> set to
17631763
one.
1764-
<li><p>Let <var>bounds</var> be a new <code><a href="#domrectimmutable">DOMRectImmutable</a></code> object with its attributes set to the values of the namesake attributes in
1764+
<li><p>Let <var>bounds</var> be a new <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> object with its attributes set to the values of the namesake attributes in
17651765
<var>rect</var>.
17661766
</ol>
17671767
<li><p>Otherwise, follow these substeps:
@@ -1775,7 +1775,7 @@ <h3 class="atrisk" id="the-domquad-interface"><span class="secno">11.4 </span>Th
17751775
<var>p3</var>.
17761776
<li><p>Let <var>point 4</var> be a new <code><a href="#dompoint">DOMPoint</a></code> object with its attributes set to the values of the namesake dictionary members in
17771777
<var>p4</var>.
1778-
<li><p>Let <var>bounds</var> be a new <code><a href="#domrectimmutable">DOMRectImmutable</a></code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
1778+
<li><p>Let <var>bounds</var> be a new <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
17791779
3</var> and <var>point 4</var>.
17801780
</ol>
17811781
<li><p>Return a new <code><a href="#domquad">DOMQuad</a></code> with <code title="dom-DOMQuad-p1"><a href="#dom-domquad-p1">p1</a></code> set to <var>point 1</var>, <code title="dom-DOMQuad-p2"><a href="#dom-domquad-p2">p2</a></code> set to

cssom-view/Overview.src.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,11 +1568,11 @@ <h3>The <code title>DOMRectList</code> Interface</h3>
15681568
greater than the number of <code>DOMRect</code> objects associated with the object. Otherwise, the <code>DOMRect</code> object at
15691569
<var>index</var> must be returned.</p>
15701570

1571-
<h3>The <code title>DOMRect</code> and <code title>DOMRectImmutable</code> Interfaces</h3>
1571+
<h3>The <code title>DOMRect</code> and <code title>DOMRectReadOnly</code> Interfaces</h3>
15721572

1573-
<p>Objects implementing the <code>DOMRect</code> or <code>DOMRectImmutable</code> interface represent a rectangular box. The type of box is specified by the
1574-
method or attribute that returns a <code>DOMRect</code> or <code>DOMRectImmutable</code> object. The interfaces are identical except the attributes of
1575-
<code>DOMRectImmutable</code> are readonly.
1573+
<p>Objects implementing the <code>DOMRect</code> or <code>DOMRectReadOnly</code> interface represent a rectangular box. The type of box is specified by the
1574+
method or attribute that returns a <code>DOMRect</code> or <code>DOMRectReadOnly</code> object. The interfaces are identical except the attributes of
1575+
<code>DOMRectReadOnly</code> are readonly.
15761576

15771577
<pre class=idl>[<span title=dom-DOMRect>Constructor</span>(unrestricted double left, unrestricted double top, unrestricted double width, <!--
15781578
-->unrestricted double height)]
@@ -1585,16 +1585,16 @@ <h3>The <code title>DOMRect</code> and <code title>DOMRectImmutable</code> Inter
15851585
attribute unrestricted double <span title=dom-DOMRect-height>height</span>;
15861586
};
15871587

1588-
interface <dfn>DOMRectImmutable</dfn> {
1589-
readonly attribute unrestricted double <span title=dom-DOMRectImmutable-top>top</span>;
1590-
readonly attribute unrestricted double <span title=dom-DOMRectImmutable-right>right</span>;
1591-
readonly attribute unrestricted double <span title=dom-DOMRectImmutable-bottom>bottom</span>;
1592-
readonly attribute unrestricted double <span title=dom-DOMRectImmutable-left>left</span>;
1593-
readonly attribute unrestricted double <span title=dom-DOMRectImmutable-width>width</span>;
1594-
readonly attribute unrestricted double <span title=dom-DOMRectImmutable-height>height</span>;
1588+
interface <dfn>DOMRectReadOnly</dfn> {
1589+
readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-top>top</span>;
1590+
readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-right>right</span>;
1591+
readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-bottom>bottom</span>;
1592+
readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-left>left</span>;
1593+
readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-width>width</span>;
1594+
readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-height>height</span>;
15951595
};
15961596

1597-
typedef (<span>DOMRect</span> or <span>DOMRectImmutable</span>) <dfn>DOMRectAny</dfn>;</pre>
1597+
typedef (<span>DOMRect</span> or <span>DOMRectReadOnly</span>) <dfn>DOMRectAny</dfn>;</pre>
15981598

15991599
<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
16001600
invoked, must run the following steps:
@@ -1627,10 +1627,10 @@ <h3>The <code title>DOMRect</code> and <code title>DOMRectImmutable</code> Inter
16271627
minus <code title=dom-DOMRect-top>top</code>. On setting, the <code title=dom-DOMRect-bottom>bottom</code> attribute must be set to the new value plus the value
16281628
of <code title=dom-DOMRect-top>top</code>.</p>
16291629

1630-
<p>The <dfn title=dom-DOMRectImmutable-top><code>top</code></dfn>, <dfn title=dom-DOMRectImmutable-right><code>right</code></dfn>,
1631-
<dfn title=dom-DOMRectImmutable-bottom><code>bottom</code></dfn>, <dfn title=dom-DOMRectImmutable-left><code>left</code></dfn>,
1632-
<dfn title=dom-DOMRectImmutable-width><code>width</code></dfn> and <dfn title=dom-DOMRectImmutable-height><code>height</code></dfn> attributes of the
1633-
<code>DOMRectImmutable</code> interface, on getting, must behave the same as the attribute of the same name on the <code>DOMRect</code> interface.
1630+
<p>The <dfn title=dom-DOMRectReadOnly-top><code>top</code></dfn>, <dfn title=dom-DOMRectReadOnly-right><code>right</code></dfn>,
1631+
<dfn title=dom-DOMRectReadOnly-bottom><code>bottom</code></dfn>, <dfn title=dom-DOMRectReadOnly-left><code>left</code></dfn>,
1632+
<dfn title=dom-DOMRectReadOnly-width><code>width</code></dfn> and <dfn title=dom-DOMRectReadOnly-height><code>height</code></dfn> attributes of the
1633+
<code>DOMRectReadOnly</code> interface, on getting, must behave the same as the attribute of the same name on the <code>DOMRect</code> interface.
16341634

16351635

16361636
<h3 class=atrisk>The <code title>DOMPoint</code> Interface</h3>
@@ -1685,7 +1685,7 @@ <h3 class=atrisk>The <code title>DOMPoint</code> Interface</h3>
16851685
<h3 class=atrisk>The <code title>DOMQuad</code> Interface</h3>
16861686

16871687
<p>Objects implementing the <code>DOMQuad</code> interface represents a quadrilateral shape. <code>DOMQuad</code> objects have an <dfn>associated
1688-
bounding rectangle</dfn> set to a <code>DOMRectImmutable</code> object when created.
1688+
bounding rectangle</dfn> set to a <code>DOMRectReadOnly</code> object when created.
16891689

16901690
<pre class=idl>[<span title=dom-DOMQuad>Constructor</span>(<span>DOMPointInit</span> p1, <span>DOMPointInit</span> p2, <!--
16911691
--><span>DOMPointInit</span> p3, <span>DOMPointInit</span> p4),
@@ -1695,7 +1695,7 @@ <h3 class=atrisk>The <code title>DOMQuad</code> Interface</h3>
16951695
[SameObject] readonly attribute <span>DOMPoint</span> <span title=dom-DOMQuad-p2>p2</span>;
16961696
[SameObject] readonly attribute <span>DOMPoint</span> <span title=dom-DOMQuad-p3>p3</span>;
16971697
[SameObject] readonly attribute <span>DOMPoint</span> <span title=dom-DOMQuad-p4>p4</span>;
1698-
[SameObject] readonly attribute <span>DOMRectImmutable</span> <span title=dom-DOMQuad-bounds>bounds</span>;
1698+
[SameObject] readonly attribute <span>DOMRectReadOnly</span> <span title=dom-DOMQuad-bounds>bounds</span>;
16991699
};</pre>
17001700

17011701
<p>The <dfn title=dom-DOMQuad><code>DOMQuad()</code></dfn> constructor, when invoked, must run the following steps:
@@ -1719,7 +1719,7 @@ <h3 class=atrisk>The <code title>DOMQuad</code> Interface</h3>
17191719
<li><p>Let <var>point 4</var> be a new <code>DOMPoint</code> object with <code title=dom-DOMPoint-x>x</code> set to <var>left</var>,
17201720
<code title=dom-DOMPoint-y>y</code> set to <var>bottom</var>, <code title=dom-DOMPoint-z>z</code> set to zero and <code title=dom-DOMPoint-w>w</code> set to
17211721
one.
1722-
<li><p>Let <var>bounds</var> be a new <code>DOMRectImmutable</code> object with its attributes set to the values of the namesake attributes in
1722+
<li><p>Let <var>bounds</var> be a new <code>DOMRectReadOnly</code> object with its attributes set to the values of the namesake attributes in
17231723
<var>rect</var>.
17241724
</ol>
17251725
<li><p>Otherwise, follow these substeps:
@@ -1733,7 +1733,7 @@ <h3 class=atrisk>The <code title>DOMQuad</code> Interface</h3>
17331733
<var>p3</var>.
17341734
<li><p>Let <var>point 4</var> be a new <code>DOMPoint</code> object with its attributes set to the values of the namesake dictionary members in
17351735
<var>p4</var>.
1736-
<li><p>Let <var>bounds</var> be a new <code>DOMRectImmutable</code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
1736+
<li><p>Let <var>bounds</var> be a new <code>DOMRectReadOnly</code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
17371737
3</var> and <var>point 4</var>.
17381738
</ol>
17391739
<li><p>Return a new <code>DOMQuad</code> with <code title=dom-DOMQuad-p1>p1</code> set to <var>point 1</var>, <code title=dom-DOMQuad-p2>p2</code> set to

0 commit comments

Comments
 (0)