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

LibWebView+WebContent: Add a WebContent IPC to get a DOM node's HTML

This commit is contained in:
Timothy Flynn 2023-12-06 10:36:27 -05:00 committed by Andreas Kling
parent 8162dc5ee6
commit bea11f6d99
5 changed files with 22 additions and 0 deletions

View file

@ -51,6 +51,7 @@ endpoint WebContentServer
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) =|
get_dom_node_html(i32 node_id) => (Optional<String> html)
take_document_screenshot() => (Gfx::ShareableBitmap data)