diff options
author | Andreas Kling <kling@serenityos.org> | 2022-10-17 14:41:50 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-20 15:16:23 +0200 |
commit | 268b9c5d904e41ba901c9fce556a5be1d5fea228 (patch) | |
tree | 3162ca508db6480fef8729482dabb43c7eb5c4fe /Userland/Services | |
parent | 83c5ff57d8dfaad4652cd94df834b08d6cdc3db3 (diff) | |
download | serenity-268b9c5d904e41ba901c9fce556a5be1d5fea228.zip |
LibWeb: Make the layout tree GC-allocated
This removes a set of complex reference cycles between DOM, layout tree
and browsing context.
It also makes lifetimes much easier to reason about, as the DOM and
layout trees are now free to keep each other alive.
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index c2dec08eaf..73846aade6 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -354,7 +354,7 @@ Messages::WebContentServer::InspectDomNodeResponse ConnectionFromClient::inspect if (pseudo_element.has_value()) { auto pseudo_element_node = element.get_pseudo_element_node(pseudo_element.value()); - if (pseudo_element_node.is_null()) + if (!pseudo_element_node) return { false, "", "", "", "" }; // FIXME: Pseudo-elements only exist as Layout::Nodes, which don't have style information |