diff options
Diffstat (limited to 'components/script/dom/webidls/DOMMatrix.webidl')
-rw-r--r-- | components/script/dom/webidls/DOMMatrix.webidl | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/components/script/dom/webidls/DOMMatrix.webidl b/components/script/dom/webidls/DOMMatrix.webidl index d1dd65e8a63..eaef16c3906 100644 --- a/components/script/dom/webidls/DOMMatrix.webidl +++ b/components/script/dom/webidls/DOMMatrix.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 * https://drafts.fxtf.org/geometry-1/#DOMMatrix @@ -10,15 +10,14 @@ * related or neighboring rights to this work. */ -[Constructor, - // Constructor(DOMString transformList), - Constructor(sequence<unrestricted double> numberSequence), - Exposed=(Window,Worker)] +[Exposed=(Window,Worker,PaintWorklet), + LegacyWindowAlias=WebKitCSSMatrix] interface DOMMatrix : DOMMatrixReadOnly { + [Throws] constructor(optional (DOMString or sequence<unrestricted double>) init); - [NewObject, Throws] static DOMMatrix fromMatrix(optional DOMMatrixInit other); -// [NewObject] static DOMMatrix fromFloat32Array(Float32Array array32); -// [NewObject] static DOMMatrix fromFloat64Array(Float64Array array64); + [NewObject, Throws] static DOMMatrix fromMatrix(optional DOMMatrixInit other = {}); + [NewObject, Throws] static DOMMatrix fromFloat32Array(Float32Array array32); + [NewObject, Throws] static DOMMatrix fromFloat64Array(Float64Array array64); // These attributes are simple aliases for certain elements of the 4x4 matrix inherit attribute unrestricted double a; @@ -46,8 +45,8 @@ interface DOMMatrix : DOMMatrixReadOnly { inherit attribute unrestricted double m44; // Mutable transform methods - [Throws] DOMMatrix multiplySelf(optional DOMMatrixInit other); - [Throws] DOMMatrix preMultiplySelf(optional DOMMatrixInit other); + [Throws] DOMMatrix multiplySelf(optional DOMMatrixInit other = {}); + [Throws] DOMMatrix preMultiplySelf(optional DOMMatrixInit other = {}); DOMMatrix translateSelf(optional unrestricted double tx = 0, optional unrestricted double ty = 0, optional unrestricted double tz = 0); |