mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Detach any LayoutNode from its parent if present in ~Node()
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 08:07:45 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a32f3b29a3d
@@ -55,6 +55,8 @@ Node::Node(Document& document, NodeType type)
|
||||
|
||||
Node::~Node()
|
||||
{
|
||||
if (layout_node() && layout_node()->parent())
|
||||
layout_node()->parent()->remove_child(*layout_node());
|
||||
}
|
||||
|
||||
const HTMLAnchorElement* Node::enclosing_link_element() const
|
||||
|
||||
Reference in New Issue
Block a user