1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:07:44 +00:00

LibWebView+WebContent: Add a WebContent IPC to remove a DOM node

The FIXME added to ConnectionFromClient::remove_dom_node is copied from
Web::EditEventHandler. The same behavior is observed here, with many
lingering Layout::TextNodes, for example.
This commit is contained in:
Timothy Flynn 2023-12-05 14:59:54 -05:00 committed by Andreas Kling
parent 86d90f324d
commit 777b4f7921
5 changed files with 26 additions and 0 deletions

View file

@ -50,6 +50,7 @@ endpoint WebContentServer
set_dom_node_tag(i32 node_id, String name) => (Optional<i32> node_id)
add_dom_node_attributes(i32 node_id, Vector<WebView::Attribute> attributes) =|
replace_dom_node_attribute(i32 node_id, String name, Vector<WebView::Attribute> replacement_attributes) =|
remove_dom_node(i32 node_id) =|
take_document_screenshot() => (Gfx::ShareableBitmap data)