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:
parent
0823a3c422
commit
ab19c5fab8
6 changed files with 38 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue