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/Libraries/LibWeb/DOM/Document.h | |
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/Libraries/LibWeb/DOM/Document.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index 8762b61ae5..1ba0988cb6 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -469,7 +469,7 @@ private: JS::GCPtr<HTML::Window> m_window; - RefPtr<Layout::InitialContainingBlock> m_layout_root; + JS::GCPtr<Layout::InitialContainingBlock> m_layout_root; Optional<Color> m_link_color; Optional<Color> m_active_link_color; |