summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/ImageBox.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/Layout/ImageBox.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/Layout/ImageBox.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/ImageBox.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/ImageBox.h b/Userland/Libraries/LibWeb/Layout/ImageBox.h
index 138cb507b8..9887312702 100644
--- a/Userland/Libraries/LibWeb/Layout/ImageBox.h
+++ b/Userland/Libraries/LibWeb/Layout/ImageBox.h
@@ -15,6 +15,8 @@ namespace Web::Layout {
class ImageBox
: public ReplacedBox
, public HTML::BrowsingContext::ViewportClient {
+ JS_CELL(ImageBox, ReplacedBox);
+
public:
ImageBox(DOM::Document&, DOM::Element&, NonnullRefPtr<CSS::StyleProperties>, ImageLoader const&);
virtual ~ImageBox() override;