1
Fork 0
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:
Andreas Kling 2021-01-28 08:57:37 +01:00
parent 5a58f42e3c
commit a0bcfa30bf
3 changed files with 8 additions and 1 deletions

View file

@ -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)