summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-01-11 12:51:49 +0100
committerAndreas Kling <kling@serenityos.org>2023-01-11 12:55:00 +0100
commit4d401bf7968d36769ba096c13cc0616855812a17 (patch)
treeeb558b69186572e892068b154abc9ce546923d95 /Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
parent35ba13802d181d7dffd25733476256bf7807ccb0 (diff)
downloadserenity-4d401bf7968d36769ba096c13cc0616855812a17.zip
LibWeb: Make the paint tree GC-allocated
This simplifies the ownership model between DOM/layout/paint nodes immensely by deferring to the garbage collector for figuring out what's live and what's not.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/LabelablePaintable.h')
-rw-r--r--Userland/Libraries/LibWeb/Painting/LabelablePaintable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h b/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
index c64555c127..c5f931aefd 100644
--- a/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
+++ b/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
@@ -16,6 +16,8 @@ namespace Web::Painting {
// FIXME: Splinter this into FormAssociatedLabelablePaintable once
// ProgressPaintable switches over to this.
class LabelablePaintable : public PaintableBox {
+ JS_CELL(LabelablePaintable, PaintableBox);
+
public:
Layout::FormAssociatedLabelableNode const& layout_box() const;
Layout::FormAssociatedLabelableNode& layout_box();