diff options
Diffstat (limited to 'components/script/dom/webidls/DOMPoint.webidl')
-rw-r--r-- | components/script/dom/webidls/DOMPoint.webidl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/components/script/dom/webidls/DOMPoint.webidl b/components/script/dom/webidls/DOMPoint.webidl index 4afc98ba3d6..765c62df573 100644 --- a/components/script/dom/webidls/DOMPoint.webidl +++ b/components/script/dom/webidls/DOMPoint.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,10 +10,12 @@ */ // http://dev.w3.org/fxtf/geometry/Overview.html#dompoint -[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 DOMPoint : 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 DOMPoint fromPoint(optional DOMPointInit other = {}); + inherit attribute unrestricted double x; inherit attribute unrestricted double y; inherit attribute unrestricted double z; |