Support default toJSON in WebIDL

This commit is contained in:
Kagami Sascha Rosylight 2019-07-24 17:11:44 +09:00
parent 9a7e2663e8
commit 16b4e3446b
9 changed files with 106 additions and 155 deletions

View file

@ -81,7 +81,6 @@ interface DOMMatrixReadOnly {
DOMPoint transformPoint(optional DOMPointInit point = {});
Float32Array toFloat32Array();
Float64Array toFloat64Array();
// stringifier;
// serializer = { attribute };
// [Exposed=Window] stringifier;
[Default] object toJSON();
};

View file

@ -20,4 +20,6 @@ interface DOMPointReadOnly {
readonly attribute unrestricted double y;
readonly attribute unrestricted double z;
readonly attribute unrestricted double w;
[Default] object toJSON();
};

View file

@ -22,6 +22,8 @@ interface DOMQuad {
[SameObject] readonly attribute DOMPoint p3;
[SameObject] readonly attribute DOMPoint p4;
[NewObject] DOMRect getBounds();
[Default] object toJSON();
};
dictionary DOMQuadInit {

View file

@ -17,6 +17,8 @@ interface DOMRectReadOnly {
readonly attribute unrestricted double right;
readonly attribute unrestricted double bottom;
readonly attribute unrestricted double left;
[Default] object toJSON();
};
// https://drafts.fxtf.org/geometry/#dictdef-domrectinit