mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
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.
This commit is contained in:
@@ -21,7 +21,7 @@ InlineNode::InlineNode(DOM::Document& document, DOM::Element* element, NonnullRe
|
||||
|
||||
InlineNode::~InlineNode() = default;
|
||||
|
||||
RefPtr<Painting::Paintable> InlineNode::create_paintable() const
|
||||
JS::GCPtr<Painting::Paintable> InlineNode::create_paintable() const
|
||||
{
|
||||
return Painting::InlinePaintable::create(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user