mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +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:
parent
2f828231c4
commit
58ce2dd088
Notes:
sideshowbarker
2024-07-17 18:57:21 +09:00
Author: https://github.com/DerpyCrabs
Commit: 58ce2dd088
Pull-request: https://github.com/SerenityOS/serenity/pull/12458
3 changed files with 27 additions and 0 deletions
|
@ -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>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue