aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/webidls/DOMQuad.webidl
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2025-01-24 15:47:43 -0500
committerGitHub <noreply@github.com>2025-01-24 20:47:43 +0000
commitaf8d7c2de7dc5d2f844a021b97babfe4e4f839d4 (patch)
treed2a003abac01b1a2266732fa7b89c9d8e1601e88 /components/script_bindings/webidls/DOMQuad.webidl
parenta88b59534ff1d064acf76af1535c3d6847817826 (diff)
downloadservo-af8d7c2de7dc5d2f844a021b97babfe4e4f839d4.tar.gz
servo-af8d7c2de7dc5d2f844a021b97babfe4e4f839d4.zip
script: Move code generation and webidl files to new script_bindings crate. (#35157)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script_bindings/webidls/DOMQuad.webidl')
-rw-r--r--components/script_bindings/webidls/DOMQuad.webidl34
1 files changed, 34 insertions, 0 deletions
diff --git a/components/script_bindings/webidls/DOMQuad.webidl b/components/script_bindings/webidls/DOMQuad.webidl
new file mode 100644
index 00000000000..ba58ccffc48
--- /dev/null
+++ b/components/script_bindings/webidls/DOMQuad.webidl
@@ -0,0 +1,34 @@
+/* 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/. */
+/*
+ * The origin of this IDL file is
+ * https://drafts.fxtf.org/geometry/#DOMQuad
+ *
+ * Copyright:
+ * To the extent possible under law, the editors have waived all copyright and
+ * related or neighboring rights to this work.
+ */
+
+[Exposed=(Window,Worker)]
+interface DOMQuad {
+ [Throws] constructor(optional DOMPointInit p1 = {}, optional DOMPointInit p2 = {},
+ optional DOMPointInit p3 = {}, optional DOMPointInit p4 = {});
+ [NewObject] static DOMQuad fromRect(optional DOMRectInit other = {});
+ [NewObject] static DOMQuad fromQuad(optional DOMQuadInit other = {});
+
+ [SameObject] readonly attribute DOMPoint p1;
+ [SameObject] readonly attribute DOMPoint p2;
+ [SameObject] readonly attribute DOMPoint p3;
+ [SameObject] readonly attribute DOMPoint p4;
+ [NewObject] DOMRect getBounds();
+
+ [Default] object toJSON();
+};
+
+dictionary DOMQuadInit {
+ DOMPointInit p1 = {};
+ DOMPointInit p2 = {};
+ DOMPointInit p3 = {};
+ DOMPointInit p4 = {};
+};