mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
bb217fb0d7
commit
111e53a2f6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user