aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls
diff options
context:
space:
mode:
authorchickenleaf <lashwinib@gmail.com>2024-11-01 21:28:30 +0530
committerGitHub <noreply@github.com>2024-11-01 15:58:30 +0000
commit257f4b84dbf523dd9079079c894ea53107dc2834 (patch)
tree57a4f23785f230c71e5d01e503e8d23b68b98ab3 /components/script/dom/webidls
parentd2c4448ac88669488a48ec93085b6183972089ad (diff)
downloadservo-257f4b84dbf523dd9079079c894ea53107dc2834.tar.gz
servo-257f4b84dbf523dd9079079c894ea53107dc2834.zip
DOMRectList interface implementation (#34025)
* rechecking all file changes and additions Signed-off-by: L Ashwin B <lashwinib@gmail.com> * added comments with specification links Signed-off-by: L Ashwin B <lashwinib@gmail.com> * added space before the links Signed-off-by: L Ashwin B <lashwinib@gmail.com> * modified the doc link format Signed-off-by: L Ashwin B <lashwinib@gmail.com> * suggested changes + updated interfaces.https.html + updated passing test expectations Signed-off-by: L Ashwin B <lashwinib@gmail.com> * needed to do an update-manifest Signed-off-by: L Ashwin B <lashwinib@gmail.com> * updated the idlharness.any.html expectations Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r--components/script/dom/webidls/DOMRectList.webidl11
-rw-r--r--components/script/dom/webidls/Element.webidl2
2 files changed, 12 insertions, 1 deletions
diff --git a/components/script/dom/webidls/DOMRectList.webidl b/components/script/dom/webidls/DOMRectList.webidl
new file mode 100644
index 00000000000..0d11c07e7fc
--- /dev/null
+++ b/components/script/dom/webidls/DOMRectList.webidl
@@ -0,0 +1,11 @@
+/* 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 https://mozilla.org/MPL/2.0/. */
+
+// https://drafts.fxtf.org/geometry-1/#domrectlist
+
+[Exposed=Window]
+interface DOMRectList {
+ readonly attribute unsigned long length;
+ getter DOMRect? item(unsigned long index);
+};
diff --git a/components/script/dom/webidls/Element.webidl b/components/script/dom/webidls/Element.webidl
index e5c503ef383..1a06f1394ca 100644
--- a/components/script/dom/webidls/Element.webidl
+++ b/components/script/dom/webidls/Element.webidl
@@ -88,7 +88,7 @@ interface Element : Node {
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
partial interface Element {
- sequence<DOMRect> getClientRects();
+ DOMRectList getClientRects();
[NewObject]
DOMRect getBoundingClientRect();