mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:34:59 +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
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