Skip to content

Commit 6e05c3e

Browse files
author
Simon Pieters
committed
[cssom-view] Rename ClientRect/ClientRectList to DOMRect/DOMRectList. <http://www.w3.org/mid/CAOp6jLaf89W5+yQVirXb9mNN8tCGdUbL1Tmz8KAxE9MLOvJ3uQ@mail.gmail.com>
1 parent ae87d5e commit 6e05c3e

2 files changed

Lines changed: 112 additions & 112 deletions

File tree

cssom-view/Overview.html

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ <h2 class="no-num no-toc" id="toc">Table of Contents</h2>
139139
<li><a href="#extensions-to-the-mouseevent-interface"><span class="secno">10 </span>Extensions to the <code title="">MouseEvent</code> Interface</a></li>
140140
<li><a href="#rectangles"><span class="secno">11 </span>Rectangles</a>
141141
<ul class="toc">
142-
<li><a href="#the-clientrectlist-interface"><span class="secno">11.1 </span>The <code title="">ClientRectList</code> Interface</a></li>
143-
<li><a href="#the-clientrect-interface"><span class="secno">11.2 </span>The <code title="">ClientRect</code> Interface</a></ul></li>
142+
<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-interface"><span class="secno">11.2 </span>The <code title="">DOMRect</code> Interface</a></ul></li>
144144
<li><a href="#events"><span class="secno">12 </span>Events</a>
145145
<ul class="toc">
146146
<li><a href="#resizing-viewports"><span class="secno">12.1 </span>Resizing viewports</a></li>
@@ -945,7 +945,7 @@ <h3 id="the-caretposition-interface"><span class="secno">6.1 </span>The <code ti
945945
<pre class="idl">interface <dfn id="caretposition">CaretPosition</dfn> {
946946
readonly attribute <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#node">Node</a> <a href="#dom-caretposition-offsetnode" title="dom-CaretPosition-offsetNode">offsetNode</a>;
947947
readonly attribute unsigned long <a href="#dom-caretposition-offset" title="dom-CaretPosition-offset">offset</a>;
948-
<a href="#clientrect">ClientRect</a>? <a href="#dom-caretposition-getclientrect" title="dom-CaretPosition-getClientRect">getClientRect</a>();
948+
<a href="#domrect">DOMRect</a>? <a href="#dom-caretposition-getclientrect" title="dom-CaretPosition-getClientRect">getClientRect</a>();
949949
};</pre>
950950

951951
<p>The <dfn id="dom-caretposition-offsetnode" title="dom-CaretPosition-offsetNode"><code>offsetNode</code></dfn> attribute must return the <a href="#caret-node">caret node</a>.</p>
@@ -962,10 +962,10 @@ <h3 id="the-caretposition-interface"><span class="secno">6.1 </span>The <code ti
962962
<code title="dom-Range-getClientRects"><a href="#dom-range-getclientrects">getClientRects()</a></code> method on the
963963
range.
964964
<li><p>If <var>list</var> is empty, return null.
965-
<li><p>Return the <code><a href="#clientrect">ClientRect</a></code> object in <var>list</var> at index 0.
965+
<li><p>Return the <code><a href="#domrect">DOMRect</a></code> object in <var>list</var> at index 0.
966966
</ol>
967967
<li><p>If <a href="#caret-node">caret node</a> is a text entry widget that is a replaced element,
968-
and that is in the document, return a <code><a href="#clientrect">ClientRect</a></code> object for the caret
968+
and that is in the document, return a <code><a href="#domrect">DOMRect</a></code> object for the caret
969969
in the widget as represented by the <a href="#caret-offset">caret offset</a> value. The SVG transforms and CSS transforms that apply to the element and its ancestors are
970970
applied. <a href="#refsSVG">[SVG]</a> <a href="#refsCSSTRANSFORMS">[CSSTRANSFORMS]</a>
971971
<li><p>Return null.
@@ -981,8 +981,8 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
981981
};
982982

983983
partial interface <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#element">Element</a> {
984-
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-element-getclientrects" title="dom-Element-getClientRects">getClientRects</a>();
985-
<a href="#clientrect">ClientRect</a> <a href="#dom-element-getboundingclientrect" title="dom-Element-getBoundingClientRect">getBoundingClientRect</a>();
984+
<a href="#domrectlist">DOMRectList</a> <a href="#dom-element-getclientrects" title="dom-Element-getClientRects">getClientRects</a>();
985+
<a href="#domrect">DOMRect</a> <a href="#dom-element-getboundingclientrect" title="dom-Element-getBoundingClientRect">getBoundingClientRect</a>();
986986
void <a href="#dom-element-scrollintoview" title="dom-Element-scrollIntoView">scrollIntoView</a>(optional boolean top = true, optional <a href="#scrolloptions">ScrollOptions</a> options);
987987
attribute (double or <a href="#scrolloptionsvertical">ScrollOptionsVertical</a>) <a href="#dom-element-scrolltop" title="dom-Element-scrollTop">scrollTop</a>;
988988
attribute (double or <a href="#scrolloptionshorizontal">ScrollOptionsHorizontal</a>) <a href="#dom-element-scrollleft" title="dom-Element-scrollLeft">scrollLeft</a>;
@@ -997,16 +997,16 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
997997
<p>The <dfn id="dom-element-getclientrects" title="dom-Element-getClientRects"><code>getClientRects()</code></dfn> method, when invoked, must return the result of the following algorithm:</p>
998998
<ol>
999999
<li><p>If the element on which it was invoked does not have an associated
1000-
<a href="#layout-box">layout box</a> return an empty <code><a href="#clientrectlist">ClientRectList</a></code> object and stop
1000+
<a href="#layout-box">layout box</a> return an empty <code><a href="#domrectlist">DOMRectList</a></code> object and stop
10011001
this algorithm.</li>
10021002
<li><p>If the element has an associated <a href="#svg-layout-box">SVG layout box</a> return a
1003-
<code><a href="#clientrectlist">ClientRectList</a></code> object containing a single
1004-
<code><a href="#clientrect">ClientRect</a></code> object that describes the bounding box of the
1003+
<code><a href="#domrectlist">DOMRectList</a></code> object containing a single
1004+
<code><a href="#domrect">DOMRect</a></code> object that describes the bounding box of the
10051005
element as defined by the SVG specification, applying the SVG transforms and CSS transforms that apply to the element and its ancestors.
10061006
<a href="#refsSVG">[SVG]</a> <a href="#refsCSSTRANSFORMS">[CSSTRANSFORMS]</a></li>
10071007
<li>
1008-
<p>Return a <code><a href="#clientrectlist">ClientRectList</a></code> object containing a list of
1009-
<code><a href="#clientrect">ClientRect</a></code> objects in content order describing the border
1008+
<p>Return a <code><a href="#domrectlist">DOMRectList</a></code> object containing a list of
1009+
<code><a href="#domrect">DOMRect</a></code> objects in content order describing the border
10101010
boxes (including those with a height or width of zero) with the
10111011
following constraints:</p>
10121012
<ul>
@@ -1030,12 +1030,12 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
10301030
<li><p>Let <var>list</var> be the result of invoking
10311031
<code title="dom-Element-getClientRects"><a href="#dom-element-getclientrects">getClientRects()</a></code> on the
10321032
same element this method was invoked on.</li>
1033-
<li><p>If the <var>list</var> is empty return a <code><a href="#clientrect">ClientRect</a></code>
1034-
object whose <code title="dom-ClientRect-top"><a href="#dom-clientrect-top">top</a></code>,
1035-
<code title="dom-ClientRect-right"><a href="#dom-clientrect-right">right</a></code>,
1036-
<code title="dom-ClientRect-bottom"><a href="#dom-clientrect-bottom">bottom</a></code> and
1037-
<code title="dom-ClientRect-left"><a href="#dom-clientrect-left">left</a></code> members are zero.</li>
1038-
<li><p>Otherwise, return a <code><a href="#clientrect">ClientRect</a></code> object describing the
1033+
<li><p>If the <var>list</var> is empty return a <code><a href="#domrect">DOMRect</a></code>
1034+
object whose <code title="dom-DOMRect-top"><a href="#dom-domrect-top">top</a></code>,
1035+
<code title="dom-DOMRect-right"><a href="#dom-domrect-right">right</a></code>,
1036+
<code title="dom-DOMRect-bottom"><a href="#dom-domrect-bottom">bottom</a></code> and
1037+
<code title="dom-DOMRect-left"><a href="#dom-domrect-left">left</a></code> members are zero.</li>
1038+
<li><p>Otherwise, return a <code><a href="#domrect">DOMRect</a></code> object describing the
10391039
smallest rectangle that includes the first rectangle in <var>list</var>
10401040
and all of the remaining rectangles of which the height or width is not
10411041
zero.</li>
@@ -1455,14 +1455,14 @@ <h2 id="extensions-to-the-range-interface"><span class="secno">9 </span>Extensio
14551455
be static.</p>
14561456

14571457
<pre class="idl">partial interface <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#range">Range</a> {
1458-
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-range-getclientrects" title="dom-Range-getClientRects">getClientRects</a>();
1459-
<a href="#clientrect">ClientRect</a> <a href="#dom-range-getboundingclientrect" title="dom-Range-getBoundingClientRect">getBoundingClientRect</a>();
1458+
<a href="#domrectlist">DOMRectList</a> <a href="#dom-range-getclientrects" title="dom-Range-getClientRects">getClientRects</a>();
1459+
<a href="#domrect">DOMRect</a> <a href="#dom-range-getboundingclientrect" title="dom-Range-getBoundingClientRect">getBoundingClientRect</a>();
14601460
};</pre>
14611461

14621462
<p>The <dfn id="dom-range-getclientrects" title="dom-Range-getClientRects"><code>getClientRects()</code></dfn> method, when invoked, must return an empty
1463-
<code><a href="#clientrectlist">ClientRectList</a></code> object if the range is not in the document and
1464-
otherwise a <code><a href="#clientrectlist">ClientRectList</a></code> object containing a list of
1465-
<code><a href="#clientrect">ClientRect</a></code> objects in content order that matches the
1463+
<code><a href="#domrectlist">DOMRectList</a></code> object if the range is not in the document and
1464+
otherwise a <code><a href="#domrectlist">DOMRectList</a></code> object containing a list of
1465+
<code><a href="#domrect">DOMRect</a></code> objects in content order that matches the
14661466
following constraints:</p>
14671467
<ul>
14681468
<li>For each element selected by the range, whose parent is not selected
@@ -1471,8 +1471,8 @@ <h2 id="extensions-to-the-range-interface"><span class="secno">9 </span>Extensio
14711471
element.</li>
14721472
<li>For each <code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#text">Text</a></code> node selected or partially selected by the
14731473
range (including when the boundary-points are identical), include a
1474-
<code><a href="#clientrect">ClientRect</a></code> object (for the part that is selected, not the
1475-
whole line box). The bounds of these <code><a href="#clientrect">ClientRect</a></code> objects are
1474+
<code><a href="#domrect">DOMRect</a></code> object (for the part that is selected, not the
1475+
whole line box). The bounds of these <code><a href="#domrect">DOMRect</a></code> objects are
14761476
computed using font metrics; thus, for horizontal writing, the vertical
14771477
dimension of each box is determined by the font ascent and descent, and
14781478
the horizontal dimension by the text advance width. The SVG transforms and CSS transforms that apply to the ancestors are applied.
@@ -1486,12 +1486,12 @@ <h2 id="extensions-to-the-range-interface"><span class="secno">9 </span>Extensio
14861486
<code title="dom-Range-getClientRects"><a href="#dom-range-getclientrects">getClientRects()</a></code> on the
14871487
same range this method was invoked on.</li>
14881488
<li><p>If <var>list</var> is empty return a
1489-
<code><a href="#clientrect">ClientRect</a></code> object whose
1490-
<code title="dom-ClientRect-top"><a href="#dom-clientrect-top">top</a></code>,
1491-
<code title="dom-ClientRect-right"><a href="#dom-clientrect-right">right</a></code>,
1492-
<code title="dom-ClientRect-bottom"><a href="#dom-clientrect-bottom">bottom</a></code> and
1493-
<code title="dom-ClientRect-left"><a href="#dom-clientrect-left">left</a></code> members are zero.</li>
1494-
<li><p>Otherwise, return a <code><a href="#clientrect">ClientRect</a></code> object describing the
1489+
<code><a href="#domrect">DOMRect</a></code> object whose
1490+
<code title="dom-DOMRect-top"><a href="#dom-domrect-top">top</a></code>,
1491+
<code title="dom-DOMRect-right"><a href="#dom-domrect-right">right</a></code>,
1492+
<code title="dom-DOMRect-bottom"><a href="#dom-domrect-bottom">bottom</a></code> and
1493+
<code title="dom-DOMRect-left"><a href="#dom-domrect-left">left</a></code> members are zero.</li>
1494+
<li><p>Otherwise, return a <code><a href="#domrect">DOMRect</a></code> object describing the
14951495
smallest rectangle that includes the first rectangle in <var>list</var>
14961496
and all of the remaining rectangles of which the height or width is not
14971497
zero.</li>
@@ -1585,54 +1585,54 @@ <h2 id="extensions-to-the-mouseevent-interface"><span class="secno">10 </span>Ex
15851585
<h2 id="rectangles"><span class="secno">11 </span>Rectangles</h2>
15861586

15871587

1588-
<h3 id="the-clientrectlist-interface"><span class="secno">11.1 </span>The <code title="">ClientRectList</code> Interface</h3>
1588+
<h3 id="the-domrectlist-interface"><span class="secno">11.1 </span>The <code title="">DOMRectList</code> Interface</h3>
15891589

1590-
<p>The <code><a href="#clientrectlist">ClientRectList</a></code> interface consists of an ordered list of <code><a href="#clientrect">ClientRect</a></code> objects.</p>
1590+
<p>The <code><a href="#domrectlist">DOMRectList</a></code> interface consists of an ordered list of <code><a href="#domrect">DOMRect</a></code> objects.</p>
15911591

1592-
<pre class="idl">interface <dfn id="clientrectlist">ClientRectList</dfn> {
1593-
readonly attribute unsigned long <a href="#dom-clientrectlist-length" title="dom-ClientRectList-length">length</a>;
1594-
getter <a href="#clientrect">ClientRect</a> <a href="#dom-clientrectlist-item" title="dom-ClientRectList-item">item</a>(unsigned long index);
1592+
<pre class="idl">interface <dfn id="domrectlist">DOMRectList</dfn> {
1593+
readonly attribute unsigned long <a href="#dom-domrectlist-length" title="dom-DOMRectList-length">length</a>;
1594+
getter <a href="#domrect">DOMRect</a> <a href="#dom-domrectlist-item" title="dom-DOMRectList-item">item</a>(unsigned long index);
15951595
};</pre>
15961596

1597-
<p>The <dfn id="dom-clientrectlist-length" title="dom-ClientRectList-length"><code>length</code></dfn> attribute must return the total number of <code><a href="#clientrect">ClientRect</a></code> objects associated with
1597+
<p>The <dfn id="dom-domrectlist-length" title="dom-DOMRectList-length"><code>length</code></dfn> attribute must return the total number of <code><a href="#domrect">DOMRect</a></code> objects associated with
15981598
the object.</p>
15991599

1600-
<p>The <dfn id="dom-clientrectlist-item" title="dom-ClientRectList-item"><code>item(<var>index</var>)</code></dfn> method, when invoked, must throw an
1600+
<p>The <dfn id="dom-domrectlist-item" title="dom-DOMRectList-item"><code>item(<var>index</var>)</code></dfn> method, when invoked, must throw an
16011601
<code class="external" data-anolis-spec="dom"><a href="http://dom.spec.whatwg.org/#indexsizeerror">IndexSizeError</a></code> exception when <var>index</var> is
1602-
greater than the number of <code><a href="#clientrect">ClientRect</a></code> objects associated with the object. Otherwise, the <code><a href="#clientrect">ClientRect</a></code> object at
1602+
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
16031603
<var>index</var> must be returned.</p>
16041604

1605-
<h3 id="the-clientrect-interface"><span class="secno">11.2 </span>The <code title="">ClientRect</code> Interface</h3>
1605+
<h3 id="the-domrect-interface"><span class="secno">11.2 </span>The <code title="">DOMRect</code> Interface</h3>
16061606

1607-
<p>Objects implementing the <code><a href="#clientrect">ClientRect</a></code> interface represent a rectangular box. The type of box is specified by the method that returns a
1608-
<code><a href="#clientrect">ClientRect</a></code> object.</p>
1607+
<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
1608+
<code><a href="#domrect">DOMRect</a></code> object.</p>
16091609

1610-
<pre class="idl">interface <dfn id="clientrect">ClientRect</dfn> {
1611-
readonly attribute double <a href="#dom-clientrect-top" title="dom-ClientRect-top">top</a>;
1612-
readonly attribute double <a href="#dom-clientrect-top" title="dom-ClientRect-top">right</a>;
1613-
readonly attribute double <a href="#dom-clientrect-top" title="dom-ClientRect-top">bottom</a>;
1614-
readonly attribute double <a href="#dom-clientrect-top" title="dom-ClientRect-top">left</a>;
1615-
readonly attribute double <a href="#dom-clientrect-top" title="dom-ClientRect-top">width</a>;
1616-
readonly attribute double <a href="#dom-clientrect-top" title="dom-ClientRect-top">height</a>;
1610+
<pre class="idl">interface <dfn id="domrect">DOMRect</dfn> {
1611+
readonly attribute double <a href="#dom-domrect-top" title="dom-DOMRect-top">top</a>;
1612+
readonly attribute double <a href="#dom-domrect-top" title="dom-DOMRect-top">right</a>;
1613+
readonly attribute double <a href="#dom-domrect-top" title="dom-DOMRect-top">bottom</a>;
1614+
readonly attribute double <a href="#dom-domrect-top" title="dom-DOMRect-top">left</a>;
1615+
readonly attribute double <a href="#dom-domrect-top" title="dom-DOMRect-top">width</a>;
1616+
readonly attribute double <a href="#dom-domrect-top" title="dom-DOMRect-top">height</a>;
16171617
};</pre>
16181618

1619-
<p>The <dfn id="dom-clientrect-top" title="dom-ClientRect-top"><code>top</code></dfn> attribute must return the y-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the top of
1619+
<p>The <dfn id="dom-domrect-top" title="dom-DOMRect-top"><code>top</code></dfn> attribute must return the y-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the top of
16201620
the rectangle box.</p>
16211621

1622-
<p>The <dfn id="dom-clientrect-right" title="dom-ClientRect-right"><code>right</code></dfn> attribute must return the x-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the
1622+
<p>The <dfn id="dom-domrect-right" title="dom-DOMRect-right"><code>right</code></dfn> attribute must return the x-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the
16231623
right of the rectangle box.</p>
16241624

1625-
<p>The <dfn id="dom-clientrect-bottom" title="dom-ClientRect-bottom"><code>bottom</code></dfn> attribute must return the y-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the
1625+
<p>The <dfn id="dom-domrect-bottom" title="dom-DOMRect-bottom"><code>bottom</code></dfn> attribute must return the y-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the
16261626
bottom of the rectangle box.</p>
16271627

1628-
<p>The <dfn id="dom-clientrect-left" title="dom-ClientRect-left"><code>left</code></dfn> attribute must return the x-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the left
1628+
<p>The <dfn id="dom-domrect-left" title="dom-DOMRect-left"><code>left</code></dfn> attribute must return the x-coordinate, relative to the <a href="#viewport">viewport</a> origin, of the left
16291629
of the rectangle box.</p>
16301630

1631-
<p>The <dfn id="dom-clientrect-width" title="dom-ClientRect-width"><code>width</code></dfn> attribute must return the width of the rectangle box.</p>
1632-
<p class="note">This is identical to <code title="dom-ClientRect-right"><a href="#dom-clientrect-right">right</a></code> minus <code title="dom-ClientRect-left"><a href="#dom-clientrect-left">left</a></code>.</p>
1631+
<p>The <dfn id="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute must return the width of the rectangle box.</p>
1632+
<p class="note">This is identical to <code title="dom-DOMRect-right"><a href="#dom-domrect-right">right</a></code> minus <code title="dom-DOMRect-left"><a href="#dom-domrect-left">left</a></code>.</p>
16331633

1634-
<p>The <dfn id="dom-clientrect-height" title="dom-ClientRect-height"><code>height</code></dfn> attribute must return the height of the rectangle box.</p>
1635-
<p class="note">This is identical to <code title="dom-ClientRect-bottom"><a href="#dom-clientrect-bottom">bottom</a></code> minus <code title="dom-ClientRect-top"><a href="#dom-clientrect-top">top</a></code>.</p>
1634+
<p>The <dfn id="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute must return the height of the rectangle box.</p>
1635+
<p class="note">This is identical to <code title="dom-DOMRect-bottom"><a href="#dom-domrect-bottom">bottom</a></code> minus <code title="dom-DOMRect-top"><a href="#dom-domrect-top">top</a></code>.</p>
16361636

16371637

16381638
<h2 id="events"><span class="secno">12 </span>Events</h2>

0 commit comments

Comments
 (0)