mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 04:27:40 +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:
parent
b3a885755c
commit
ad1853cbf5
1 changed files with 0 additions and 4 deletions
|
@ -85,10 +85,6 @@ Node::~Node() = default;
|
||||||
void Node::finalize()
|
void Node::finalize()
|
||||||
{
|
{
|
||||||
Base::finalize();
|
Base::finalize();
|
||||||
|
|
||||||
if (layout_node() && layout_node()->parent())
|
|
||||||
layout_node()->parent()->remove_child(*layout_node());
|
|
||||||
|
|
||||||
deallocate_node_id(m_id);
|
deallocate_node_id(m_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue