mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
LibWebView+WebConent: Add an IPC to get an element's absolute rect
This commit is contained in:
parent
77b6d0bf16
commit
995f3db384
5 changed files with 40 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue