summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-11-03 12:51:44 -0400
committerLinus Groh <mail@linusgroh.de>2022-11-03 19:15:43 +0000
commit995f3db3848b9f6b6661b0738b7308d925147c50 (patch)
treefb1b164a936f818f2aa482ae40657533e3cc54de /Userland/Libraries
parent77b6d0bf166b0b0deca80e6791c0f1054ad57f6e (diff)
downloadserenity-995f3db3848b9f6b6661b0738b7308d925147c50.zip
LibWebView+WebConent: Add an IPC to get an element's absolute rect
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.cpp5
-rw-r--r--Userland/Libraries/LibWebView/OutOfProcessWebView.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
index 59e4ece875..151ba6f264 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp
@@ -560,6 +560,11 @@ String OutOfProcessWebView::get_element_tag_name(i32 element_id)
return client().get_element_tag_name(element_id);
}
+Gfx::IntRect OutOfProcessWebView::get_element_rect(i32 element_id)
+{
+ return client().get_element_rect(element_id);
+}
+
void OutOfProcessWebView::set_content_filters(Vector<String> filters)
{
client().async_set_content_filters(filters);
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.h b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
index eb95879329..6b8b90a14a 100644
--- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h
@@ -71,6 +71,7 @@ public:
String get_computed_value_for_element(i32 element_id, String const& property_name);
String get_element_text(i32 element_id);
String get_element_tag_name(i32 element_id);
+ Gfx::IntRect get_element_rect(i32 element_id);
void set_content_filters(Vector<String>);
void set_proxy_mappings(Vector<String> proxies, HashMap<String, size_t> mappings);