mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
WebContent+Friends: Add IPC and plumbing for WebDriver endpoint
To use the `GET /session/{id}/element/{id}/css/{property name}`
WebDriver endpoint, two new IPC calls through the Browser are
implemented:
- get_active_documents_type returns the type of the active document,
which is either "xml" or "html"
- get_computed_value_for_element returns the computed CSS value (as
String) for the given element and CSS property name
This commit is contained in:
committed by
Linus Groh
parent
eda566d112
commit
202b2be1f2
@@ -535,6 +535,16 @@ Optional<String> OutOfProcessWebView::get_element_property(i32 element_id, Strin
|
||||
return client().get_element_property(element_id, name);
|
||||
}
|
||||
|
||||
String OutOfProcessWebView::get_active_documents_type()
|
||||
{
|
||||
return client().get_active_documents_type();
|
||||
}
|
||||
|
||||
String OutOfProcessWebView::get_computed_value_for_element(i32 element_id, String const& property_name)
|
||||
{
|
||||
return client().get_computed_value_for_element(element_id, property_name);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_content_filters(Vector<String> filters)
|
||||
{
|
||||
client().async_set_content_filters(filters);
|
||||
|
||||
Reference in New Issue
Block a user