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
commit 58ce2dd088
Notes: sideshowbarker 2024-07-17 18:57:21 +09:00
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>);