mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-29 05:38:24 +00:00
LibDevTools+LibWebView+WebContent: Implement editing DOM node HTML
These commands are used for the "Edit As HTML" feature in DevTools. This renames our existing HTML getter IPC to indicate that it is for outer HTML. DevTools will need a separate inner HTML getter.
This commit is contained in:
parent
aca4385daf
commit
d75eadc3c4
Notes:
github-actions[bot]
2025-03-11 13:52:05 +00:00
Author: https://github.com/trflynn89
Commit: d75eadc3c4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3898
11 changed files with 155 additions and 32 deletions
|
@ -57,6 +57,8 @@ endpoint WebContentServer
|
|||
request_style_sheet_source(u64 page_id, Web::CSS::StyleSheetIdentifier identifier) =|
|
||||
|
||||
set_listen_for_dom_mutations(u64 page_id, bool listen_for_dom_mutations) =|
|
||||
get_dom_node_outer_html(u64 page_id, Web::UniqueNodeID node_id) =|
|
||||
set_dom_node_outer_html(u64 page_id, Web::UniqueNodeID node_id, String html) =|
|
||||
set_dom_node_text(u64 page_id, Web::UniqueNodeID node_id, String text) =|
|
||||
set_dom_node_tag(u64 page_id, Web::UniqueNodeID node_id, String name) =|
|
||||
add_dom_node_attributes(u64 page_id, Web::UniqueNodeID node_id, Vector<WebView::Attribute> attributes) =|
|
||||
|
@ -65,7 +67,6 @@ endpoint WebContentServer
|
|||
create_child_text_node(u64 page_id, Web::UniqueNodeID node_id) =|
|
||||
clone_dom_node(u64 page_id, Web::UniqueNodeID node_id) =|
|
||||
remove_dom_node(u64 page_id, Web::UniqueNodeID node_id) =|
|
||||
get_dom_node_html(u64 page_id, Web::UniqueNodeID node_id) =|
|
||||
|
||||
take_document_screenshot(u64 page_id) =|
|
||||
take_dom_node_screenshot(u64 page_id, Web::UniqueNodeID node_id) =|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue