mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibWeb: Implement DOMRect(ReadOnly)#fromRect
This will also be used by IntersectionObserver.
This commit is contained in:
parent
1d426df262
commit
6f8afd8cd9
6 changed files with 35 additions and 0 deletions
|
@ -6,6 +6,8 @@ interface DOMRect : DOMRectReadOnly {
|
|||
|
||||
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
|
||||
|
||||
[NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
|
||||
|
||||
attribute double x;
|
||||
attribute double y;
|
||||
attribute double width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue