diff options
author | Tobias Christiansen <tobyase@serenityos.org> | 2022-10-20 22:39:41 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-22 13:44:49 +0200 |
commit | be6bbdaa3b73e0517b206f7e3583f7bb03650839 (patch) | |
tree | 9f0368506100c62a161d75a2060925c5c34c3419 /Userland/Libraries | |
parent | f1f6c4c0b6202b0ea8c2b05b04d69077ce3f7f83 (diff) | |
download | serenity-be6bbdaa3b73e0517b206f7e3583f7bb03650839.zip |
WebContent+Friends: Add get_element_tag_name IPC and plumbing
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWebView/OutOfProcessWebView.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibWebView/OutOfProcessWebView.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp index a50d6fabcc..dd745842cd 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.cpp @@ -545,6 +545,11 @@ String OutOfProcessWebView::get_computed_value_for_element(i32 element_id, Strin return client().get_computed_value_for_element(element_id, property_name); } +String OutOfProcessWebView::get_element_tag_name(i32 element_id) +{ + return client().get_element_tag_name(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 a684433cb6..617f1bf1b4 100644 --- a/Userland/Libraries/LibWebView/OutOfProcessWebView.h +++ b/Userland/Libraries/LibWebView/OutOfProcessWebView.h @@ -64,6 +64,7 @@ public: Optional<String> get_element_property(i32 element_id, String const& name); String get_active_documents_type(); String get_computed_value_for_element(i32 element_id, String const& property_name); + String get_element_tag_name(i32 element_id); void set_content_filters(Vector<String>); void set_proxy_mappings(Vector<String> proxies, HashMap<String, size_t> mappings); |