diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Node.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Node.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp index d697b57e39..7e68facfd5 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.cpp +++ b/Userland/Libraries/LibWeb/DOM/Node.cpp @@ -792,10 +792,7 @@ void Node::removed_last_ref() void Node::set_layout_node(Badge<Layout::Node>, Layout::Node* layout_node) const { - if (layout_node) - m_layout_node = layout_node->make_weak_ptr(); - else - m_layout_node = nullptr; + m_layout_node = layout_node; } EventTarget* Node::get_parent(Event const&) |