mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
Notes:
sideshowbarker
2024-07-18 02:55:28 +09:00
Author: https://github.com/awesomekling
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