mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37: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
|
@ -1,15 +1,10 @@
|
|||
interface DOMRect {
|
||||
interface DOMRect : 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;
|
||||
attribute double x;
|
||||
attribute double y;
|
||||
attribute double width;
|
||||
attribute double height;
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue