1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:57:45 +00:00

LibWeb: Add stub implementation for Element's getClientRects

getClientRects supposed to return a list of bounding DOMRect
for each box fragment of Element's layout, but most elements have
only one box fragment, so implementing it with getBoundingClientRect
is useful.
This commit is contained in:
DerpyCrabs 2022-02-12 16:48:00 +03:00 committed by Andreas Kling
parent 2f828231c4
commit 58ce2dd088
3 changed files with 27 additions and 0 deletions

View file

@ -125,6 +125,7 @@ public:
bool serializes_as_void() const;
NonnullRefPtr<Geometry::DOMRect> get_bounding_client_rect() const;
NonnullRefPtr<Geometry::DOMRectList> get_client_rects() const;
virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>);