mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +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
|
@ -354,6 +354,16 @@ void ViewImplementation::set_listen_for_dom_mutations(bool listen_for_dom_mutati
|
|||
client().async_set_listen_for_dom_mutations(page_id(), listen_for_dom_mutations);
|
||||
}
|
||||
|
||||
void ViewImplementation::get_dom_node_outer_html(Web::UniqueNodeID node_id)
|
||||
{
|
||||
client().async_get_dom_node_outer_html(page_id(), node_id);
|
||||
}
|
||||
|
||||
void ViewImplementation::set_dom_node_outer_html(Web::UniqueNodeID node_id, String const& html)
|
||||
{
|
||||
client().async_set_dom_node_outer_html(page_id(), node_id, html);
|
||||
}
|
||||
|
||||
void ViewImplementation::set_dom_node_text(Web::UniqueNodeID node_id, String const& text)
|
||||
{
|
||||
client().async_set_dom_node_text(page_id(), node_id, text);
|
||||
|
@ -394,11 +404,6 @@ void ViewImplementation::remove_dom_node(Web::UniqueNodeID node_id)
|
|||
client().async_remove_dom_node(page_id(), node_id);
|
||||
}
|
||||
|
||||
void ViewImplementation::get_dom_node_html(Web::UniqueNodeID node_id)
|
||||
{
|
||||
client().async_get_dom_node_html(page_id(), node_id);
|
||||
}
|
||||
|
||||
void ViewImplementation::list_style_sheets()
|
||||
{
|
||||
client().async_list_style_sheets(page_id());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue