1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:37:36 +00:00

LibWeb: Implement DOMPoint/DOMPointReadOnly.fromPoint()

This commit is contained in:
Sam Atkins 2022-10-06 15:25:08 +01:00 committed by Linus Groh
parent 0823a3c422
commit ab19c5fab8
6 changed files with 38 additions and 2 deletions

View file

@ -4,7 +4,7 @@ interface DOMPointReadOnly {
constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1);
// FIXME: [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
[NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other = {});
readonly attribute unrestricted double x;
readonly attribute unrestricted double y;
@ -15,3 +15,10 @@ interface DOMPointReadOnly {
// FIXME: [Default] object toJSON();
};
dictionary DOMPointInit {
unrestricted double x = 0;
unrestricted double y = 0;
unrestricted double z = 0;
unrestricted double w = 1;
};