aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/DOMPointReadOnly.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/DOMPointReadOnly.webidl')
-rw-r--r--components/script/dom/webidls/DOMPointReadOnly.webidl12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/script/dom/webidls/DOMPointReadOnly.webidl b/components/script/dom/webidls/DOMPointReadOnly.webidl
index 358a1129a82..98940ed3f08 100644
--- a/components/script/dom/webidls/DOMPointReadOnly.webidl
+++ b/components/script/dom/webidls/DOMPointReadOnly.webidl
@@ -1,6 +1,6 @@
/* 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/. */
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* http://dev.w3.org/fxtf/geometry/
@@ -10,12 +10,16 @@
*/
// http://dev.w3.org/fxtf/geometry/Overview.html#dompointreadonly
-[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
- optional unrestricted double z = 0, optional unrestricted double w = 1),
- Exposed=(Window,Worker)]
+[Exposed=(Window,Worker,PaintWorklet)]
interface DOMPointReadOnly {
+ [Throws] constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
+ optional unrestricted double z = 0, optional unrestricted double w = 1);
+ [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
+
readonly attribute unrestricted double x;
readonly attribute unrestricted double y;
readonly attribute unrestricted double z;
readonly attribute unrestricted double w;
+
+ [Default] object toJSON();
};