Skip to content

Commit ebc0d23

Browse files
committed
[cssom-view] Kill DOMRectList. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=26200
1 parent ee6ae54 commit ebc0d23

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

cssom-view/Overview.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
994994
};
995995

996996
partial interface Element {
997-
DOMRectList getClientRects();
997+
sequence<DOMRect> getClientRects();
998998
DOMRect getBoundingClientRect();
999999
void scrollIntoView();
10001000
void scrollIntoView((boolean or object) arg);
@@ -1017,9 +1017,9 @@ partial interface Element {
10171017

10181018
The <dfn method for=Element>getClientRects()</dfn> method, when invoked, must return the result of the following algorithm:
10191019

1020-
1. If the element on which it was invoked does not have an associated <a>layout box</a> return an empty {{DOMRectList}} object and stop this algorithm.
1021-
1. If the element has an associated <a>SVG layout box</a> return a {{DOMRectList}} object containing a single {{DOMRect}} object that describes the bounding box of the element as defined by the SVG specification, applying the <a>transforms</a> that apply to the element and its ancestors.
1022-
1. Return a {{DOMRectList}} object containing a list of {{DOMRect}} objects in content order describing the bounding border boxes (including those with a height or width of zero) with the following constraints:
1020+
1. If the element on which it was invoked does not have an associated <a>layout box</a> return an empty sequence and stop this algorithm.
1021+
1. If the element has an associated <a>SVG layout box</a> return a sequence containing a single {{DOMRect}} object that describes the bounding box of the element as defined by the SVG specification, applying the <a>transforms</a> that apply to the element and its ancestors.
1022+
1. Return a sequence containing {{DOMRect}} objects in content order describing the bounding border boxes (including those with a height or width of zero) with the following constraints:
10231023

10241024
* Apply the <a>transforms</a> that apply to the element and its ancestors.
10251025
* If the element on which the method was invoked has a computed value for the 'display' property of ''table'' or ''inline-table'' include both the table box and the caption box, if any, but not the anonymous container box.
@@ -1364,14 +1364,14 @@ The objects the methods described below return must be static.
13641364

13651365
<pre class=idl>
13661366
partial interface Range {
1367-
DOMRectList getClientRects();
1367+
sequence<DOMRect> getClientRects();
13681368
DOMRect getBoundingClientRect();
13691369
};
13701370
</pre>
13711371

13721372
The <dfn method for=Range>getClientRects()</dfn> method, when invoked, must return an empty
1373-
{{DOMRectList}} object if the range is not in the document and
1374-
otherwise a {{DOMRectList}} object containing a list of
1373+
sequence if the range is not in the document and
1374+
otherwise a sequence object containing
13751375
{{DOMRect}} objects in content order that matches the
13761376
following constraints:
13771377

0 commit comments

Comments
 (0)