mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
LibWebView+WebContent: Add WebContent IPC to create children DOM nodes
This adds IPC to create append a child <div> element or a text node to a DOM node.
This commit is contained in:
parent
bb217fb0d7
commit
111e53a2f6
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/trflynn89
Commit: 111e53a2f6
Pull-request: https://github.com/SerenityOS/serenity/pull/22198
Reviewed-by: https://github.com/awesomekling
5 changed files with 41 additions and 0 deletions
|
@ -201,6 +201,16 @@ void ViewImplementation::replace_dom_node_attribute(i32 node_id, String name, Ve
|
|||
client().async_replace_dom_node_attribute(node_id, move(name), move(replacement_attributes));
|
||||
}
|
||||
|
||||
Optional<i32> ViewImplementation::create_child_element(i32 node_id)
|
||||
{
|
||||
return client().create_child_element(node_id);
|
||||
}
|
||||
|
||||
Optional<i32> ViewImplementation::create_child_text_node(i32 node_id)
|
||||
{
|
||||
return client().create_child_text_node(node_id);
|
||||
}
|
||||
|
||||
void ViewImplementation::remove_dom_node(i32 node_id)
|
||||
{
|
||||
client().async_remove_dom_node(node_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue