mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +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
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