mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:38:10 +00:00
LibWeb: Add simple implementation of Node.removeChild()
This commit is contained in:
parent
5a58f42e3c
commit
a0bcfa30bf
3 changed files with 8 additions and 1 deletions
|
@ -183,6 +183,12 @@ RefPtr<Node> Node::append_child(NonnullRefPtr<Node> node, bool notify)
|
|||
return node;
|
||||
}
|
||||
|
||||
RefPtr<Node> Node::remove_child(NonnullRefPtr<Node> node)
|
||||
{
|
||||
TreeNode<Node>::remove_child(node);
|
||||
return node;
|
||||
}
|
||||
|
||||
RefPtr<Node> Node::insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool notify)
|
||||
{
|
||||
if (!child)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue