summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Element.h
diff options
context:
space:
mode:
authorDerpyCrabs <derpycrabs@gmail.com>2022-02-12 16:48:00 +0300
committerAndreas Kling <kling@serenityos.org>2022-02-12 22:43:10 +0100
commit58ce2dd08806fb998d8705868314d25753674f30 (patch)
tree9e52e1e8a65bb39044da9518ba7785776d36ae87 /Userland/Libraries/LibWeb/DOM/Element.h
parent2f828231c40a4a78c0563824e204f5b112094c7d (diff)
downloadserenity-58ce2dd08806fb998d8705868314d25753674f30.zip
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Element.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Element.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h
index 4c1b1a6e04..4242c6d5eb 100644
--- a/Userland/Libraries/LibWeb/DOM/Element.h
+++ b/Userland/Libraries/LibWeb/DOM/Element.h
@@ -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>);