@@ -70,11 +70,12 @@ The DOMPoint interfaces {#DOMPoint}
7070A 2D or a 3D <dfn>point</dfn> can be represented by the following WebIDL interfaces:
7171
7272<pre class=idl>
73- [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
74- optional unrestricted double z = 0, optional unrestricted double w = 1),
75- Exposed=(Window,Worker),
73+ [Exposed=(Window,Worker),
7674 Serializable]
7775interface DOMPointReadOnly {
76+ constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
77+ optional unrestricted double z = 0, optional unrestricted double w = 1);
78+
7879 [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
7980
8081 readonly attribute unrestricted double x;
@@ -87,12 +88,13 @@ interface DOMPointReadOnly {
8788 [Default] object toJSON();
8889};
8990
90- [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
91- optional unrestricted double z = 0, optional unrestricted double w = 1),
92- Exposed=(Window,Worker),
91+ [Exposed=(Window,Worker),
9392 Serializable,
9493 LegacyWindowAlias=SVGPoint]
9594interface DOMPoint : DOMPointReadOnly {
95+ constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
96+ optional unrestricted double z = 0, optional unrestricted double w = 1);
97+
9698 [NewObject] static DOMPoint fromPoint(optional DOMPointInit other = {});
9799
98100 inherit attribute unrestricted double x;
@@ -260,11 +262,12 @@ Objects implementing the {{DOMRectReadOnly}} interface represent a <dfn>rectangl
260262</dl>
261263
262264<pre class=idl>
263- [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
264- optional unrestricted double width = 0, optional unrestricted double height = 0),
265- Exposed=(Window,Worker),
265+ [Exposed=(Window,Worker),
266266 Serializable]
267267interface DOMRectReadOnly {
268+ constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
269+ optional unrestricted double width = 0, optional unrestricted double height = 0);
270+
268271 [NewObject] static DOMRectReadOnly fromRect(optional DOMRectInit other = {});
269272
270273 readonly attribute unrestricted double x;
@@ -279,12 +282,13 @@ interface DOMRectReadOnly {
279282 [Default] object toJSON();
280283};
281284
282- [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
283- optional unrestricted double width = 0, optional unrestricted double height = 0),
284- Exposed=(Window,Worker),
285+ [Exposed=(Window,Worker),
285286 Serializable,
286287 LegacyWindowAlias=SVGRect]
287288interface DOMRect : DOMRectReadOnly {
289+ constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
290+ optional unrestricted double width = 0, optional unrestricted double height = 0);
291+
288292 [NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
289293
290294 inherit attribute unrestricted double x;
@@ -407,11 +411,12 @@ The DOMQuad interface {#DOMQuad}
407411Objects implementing the {{DOMQuad}} interface represents a <dfn export>quadrilateral</dfn> .
408412
409413<pre class=idl>
410- [Constructor(optional DOMPointInit p1 = {}, optional DOMPointInit p2 = {},
411- optional DOMPointInit p3 = {}, optional DOMPointInit p4 = {}),
412- Exposed=(Window,Worker),
414+ [Exposed=(Window,Worker),
413415 Serializable]
414416interface DOMQuad {
417+ constructor(optional DOMPointInit p1 = {}, optional DOMPointInit p2 = {},
418+ optional DOMPointInit p3 = {}, optional DOMPointInit p4 = {});
419+
415420 [NewObject] static DOMQuad fromRect(optional DOMRectInit other = {});
416421 [NewObject] static DOMQuad fromQuad(optional DOMQuadInit other = {});
417422
@@ -621,10 +626,11 @@ In the following sections, terms have the following meaning:
621626</dl>
622627
623628<pre class=idl>
624- [Constructor(optional (DOMString or sequence<unrestricted double>) init),
625- Exposed=(Window,Worker),
629+ [Exposed=(Window,Worker),
626630 Serializable]
627631interface DOMMatrixReadOnly {
632+ constructor(optional (DOMString or sequence<unrestricted double>) init);
633+
628634 [NewObject] static DOMMatrixReadOnly fromMatrix(optional DOMMatrixInit other = {});
629635 [NewObject] static DOMMatrixReadOnly fromFloat32Array(Float32Array array32);
630636 [NewObject] static DOMMatrixReadOnly fromFloat64Array(Float64Array array64);
@@ -697,11 +703,12 @@ interface DOMMatrixReadOnly {
697703 [Default] object toJSON();
698704};
699705
700- [Constructor(optional (DOMString or sequence<unrestricted double>) init),
701- Exposed=(Window,Worker),
706+ [Exposed=(Window,Worker),
702707 Serializable,
703708 LegacyWindowAlias=(SVGMatrix,WebKitCSSMatrix)]
704709interface DOMMatrix : DOMMatrixReadOnly {
710+ constructor(optional (DOMString or sequence<unrestricted double>) init);
711+
705712 [NewObject] static DOMMatrix fromMatrix(optional DOMMatrixInit other = {});
706713 [NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
707714 [NewObject] static DOMMatrix fromFloat64Array(Float64Array array64);
0 commit comments