1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibWeb: Remove unnecessary layout node detach in DOM::Node::finalize()

Manually detaching the layout node is not necessary since both the DOM
and the layout tree is garbage collected anyway.
This commit is contained in:
Andreas Kling 2023-08-28 18:42:27 +02:00
parent b3a885755c
commit ad1853cbf5

View file

@ -85,10 +85,6 @@ Node::~Node() = default;
void Node::finalize()
{
Base::finalize();
if (layout_node() && layout_node()->parent())
layout_node()->parent()->remove_child(*layout_node());
deallocate_node_id(m_id);
}