mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:17:44 +00:00
LibWeb: Add DOMRectReadOnly and make DOMRect inherit from it
This matches the class hierarchy of the CSS Geometry Interfaces Module.
This commit is contained in:
parent
77f72c7cfe
commit
3c0b55c284
7 changed files with 87 additions and 24 deletions
15
Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.idl
Normal file
15
Userland/Libraries/LibWeb/Geometry/DOMRectReadOnly.idl
Normal file
|
@ -0,0 +1,15 @@
|
|||
interface DOMRectReadOnly {
|
||||
|
||||
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
|
||||
|
||||
readonly attribute double x;
|
||||
readonly attribute double y;
|
||||
readonly attribute double width;
|
||||
readonly attribute double height;
|
||||
|
||||
readonly attribute double top;
|
||||
readonly attribute double right;
|
||||
readonly attribute double bottom;
|
||||
readonly attribute double left;
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue