summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-10-17 14:41:50 +0200
committerAndreas Kling <kling@serenityos.org>2022-10-20 15:16:23 +0200
commit268b9c5d904e41ba901c9fce556a5be1d5fea228 (patch)
tree3162ca508db6480fef8729482dabb43c7eb5c4fe /Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
parent83c5ff57d8dfaad4652cd94df834b08d6cdc3db3 (diff)
downloadserenity-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/HTML/HTMLImageElement.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLImageElement.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
index 803ee9f339..3353a259b9 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.h
@@ -50,7 +50,7 @@ private:
void animate();
- virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
+ virtual JS::GCPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
ImageLoader m_image_loader;
};