Skip to content

Commit

Permalink
[cssom-view] Kill DOMRectList. Fixes https://www.w3.org/Bugs/Public/s…
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Aug 25, 2015
1 parent ee6ae54 commit ebc0d23
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cssom-view/Overview.bs
Expand Up @@ -994,7 +994,7 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
};

partial interface Element {
DOMRectList getClientRects();
sequence<DOMRect> getClientRects();
DOMRect getBoundingClientRect();
void scrollIntoView();
void scrollIntoView((boolean or object) arg);
Expand All @@ -1017,9 +1017,9 @@ partial interface Element {

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

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.
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.
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:
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.
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.
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:

* Apply the <a>transforms</a> that apply to the element and its ancestors.
* 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.
Expand Down Expand Up @@ -1364,14 +1364,14 @@ The objects the methods described below return must be static.

<pre class=idl>
partial interface Range {
DOMRectList getClientRects();
sequence<DOMRect> getClientRects();
DOMRect getBoundingClientRect();
};
</pre>

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

Expand Down

0 comments on commit ebc0d23

Please sign in to comment.