@@ -75,14 +75,14 @@ A 2D or a 3D <dfn>point</dfn> can be represented by the following WebIDL interfa
7575 Exposed=(Window,Worker),
7676 Serializable]
7777interface DOMPointReadOnly {
78- [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other);
78+ [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {} );
7979
8080 readonly attribute unrestricted double x;
8181 readonly attribute unrestricted double y;
8282 readonly attribute unrestricted double z;
8383 readonly attribute unrestricted double w;
8484
85- [NewObject] DOMPoint matrixTransform(optional DOMMatrixInit matrix);
85+ [NewObject] DOMPoint matrixTransform(optional DOMMatrixInit matrix = {} );
8686
8787 [Default] object toJSON();
8888};
@@ -93,7 +93,7 @@ interface DOMPointReadOnly {
9393 Serializable,
9494 LegacyWindowAlias=SVGPoint]
9595interface DOMPoint : DOMPointReadOnly {
96- [NewObject] static DOMPoint fromPoint(optional DOMPointInit other);
96+ [NewObject] static DOMPoint fromPoint(optional DOMPointInit other = {} );
9797
9898 inherit attribute unrestricted double x;
9999 inherit attribute unrestricted double y;
@@ -265,7 +265,7 @@ Objects implementing the {{DOMRectReadOnly}} interface represent a <dfn>rectangl
265265 Exposed=(Window,Worker),
266266 Serializable]
267267interface DOMRectReadOnly {
268- [NewObject] static DOMRectReadOnly fromRect(optional DOMRectInit other);
268+ [NewObject] static DOMRectReadOnly fromRect(optional DOMRectInit other = {} );
269269
270270 readonly attribute unrestricted double x;
271271 readonly attribute unrestricted double y;
@@ -285,7 +285,7 @@ interface DOMRectReadOnly {
285285 Serializable,
286286 LegacyWindowAlias=SVGRect]
287287interface DOMRect : DOMRectReadOnly {
288- [NewObject] static DOMRect fromRect(optional DOMRectInit other);
288+ [NewObject] static DOMRect fromRect(optional DOMRectInit other = {} );
289289
290290 inherit attribute unrestricted double x;
291291 inherit attribute unrestricted double y;
@@ -407,13 +407,13 @@ The DOMQuad interface {#DOMQuad}
407407Objects implementing the {{DOMQuad}} interface represents a <dfn export>quadrilateral</dfn> .
408408
409409<pre class=idl>
410- [Constructor(optional DOMPointInit p1, optional DOMPointInit p2,
411- optional DOMPointInit p3, optional DOMPointInit p4),
410+ [Constructor(optional DOMPointInit p1 = {} , optional DOMPointInit p2 = {} ,
411+ optional DOMPointInit p3 = {} , optional DOMPointInit p4 = {} ),
412412 Exposed=(Window,Worker),
413413 Serializable]
414414interface DOMQuad {
415- [NewObject] static DOMQuad fromRect(optional DOMRectInit other);
416- [NewObject] static DOMQuad fromQuad(optional DOMQuadInit other);
415+ [NewObject] static DOMQuad fromRect(optional DOMRectInit other = {} );
416+ [NewObject] static DOMQuad fromQuad(optional DOMQuadInit other = {} );
417417
418418 [SameObject] readonly attribute DOMPoint p1;
419419 [SameObject] readonly attribute DOMPoint p2;
@@ -625,7 +625,7 @@ In the following sections, terms have the following meaning:
625625 Exposed=(Window,Worker),
626626 Serializable]
627627interface DOMMatrixReadOnly {
628- [NewObject] static DOMMatrixReadOnly fromMatrix(optional DOMMatrixInit other);
628+ [NewObject] static DOMMatrixReadOnly fromMatrix(optional DOMMatrixInit other = {} );
629629 [NewObject] static DOMMatrixReadOnly fromFloat32Array(Float32Array array32);
630630 [NewObject] static DOMMatrixReadOnly fromFloat64Array(Float64Array array64);
631631
@@ -684,12 +684,12 @@ interface DOMMatrixReadOnly {
684684 optional unrestricted double angle = 0);
685685 [NewObject] DOMMatrix skewX(optional unrestricted double sx = 0);
686686 [NewObject] DOMMatrix skewY(optional unrestricted double sy = 0);
687- [NewObject] DOMMatrix multiply(optional DOMMatrixInit other);
687+ [NewObject] DOMMatrix multiply(optional DOMMatrixInit other = {} );
688688 [NewObject] DOMMatrix flipX();
689689 [NewObject] DOMMatrix flipY();
690690 [NewObject] DOMMatrix inverse();
691691
692- [NewObject] DOMPoint transformPoint(optional DOMPointInit point);
692+ [NewObject] DOMPoint transformPoint(optional DOMPointInit point = {} );
693693 [NewObject] Float32Array toFloat32Array();
694694 [NewObject] Float64Array toFloat64Array();
695695
@@ -702,7 +702,7 @@ interface DOMMatrixReadOnly {
702702 Serializable,
703703 LegacyWindowAlias=(SVGMatrix,WebKitCSSMatrix)]
704704interface DOMMatrix : DOMMatrixReadOnly {
705- [NewObject] static DOMMatrix fromMatrix(optional DOMMatrixInit other);
705+ [NewObject] static DOMMatrix fromMatrix(optional DOMMatrixInit other = {} );
706706 [NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
707707 [NewObject] static DOMMatrix fromFloat64Array(Float64Array array64);
708708
@@ -732,8 +732,8 @@ interface DOMMatrix : DOMMatrixReadOnly {
732732 inherit attribute unrestricted double m44;
733733
734734 // Mutable transform methods
735- DOMMatrix multiplySelf(optional DOMMatrixInit other);
736- DOMMatrix preMultiplySelf(optional DOMMatrixInit other);
735+ DOMMatrix multiplySelf(optional DOMMatrixInit other = {} );
736+ DOMMatrix preMultiplySelf(optional DOMMatrixInit other = {} );
737737 DOMMatrix translateSelf(optional unrestricted double tx = 0,
738738 optional unrestricted double ty = 0,
739739 optional unrestricted double tz = 0);
0 commit comments