Remove DOMRectList and use sequences instead.

DOMRectList was removed last back in 2015. See
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26200 for details.
This commit is contained in:
Jack Moffitt 2017-04-19 07:11:58 -06:00
parent 56435db820
commit 853c91781e
6 changed files with 7 additions and 77 deletions

View file

@ -1,11 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// http://dev.w3.org/fxtf/geometry/#DOMRectList
[NoInterfaceObject, Exposed=(Window,Worker)]
//[ArrayClass]
interface DOMRectList {
readonly attribute unsigned long length;
getter DOMRect? item(unsigned long index);
};

View file

@ -81,7 +81,8 @@ interface Element : Node {
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
partial interface Element {
DOMRectList getClientRects();
sequence<DOMRect> getClientRects();
[NewObject]
DOMRect getBoundingClientRect();
void scroll(optional ScrollToOptions options);

View file

@ -82,6 +82,7 @@ partial interface Range {
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-range-interface
partial interface Range {
// DOMRectList? getClientRects();
// sequence<DOMRect> getClientRects();
// [NewObject]
// DOMRect getBoundingClientRect();
};