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
commit ad1853cbf5
Notes: sideshowbarker 2024-07-17 06:38:11 +09:00

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);
}