mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
@@ -23,7 +23,7 @@ void CanvasBox::prepare_for_replaced_layout()
|
||||
set_intrinsic_height(dom_node().height());
|
||||
}
|
||||
|
||||
RefPtr<Painting::Paintable> CanvasBox::create_paintable() const
|
||||
JS::GCPtr<Painting::Paintable> CanvasBox::create_paintable() const
|
||||
{
|
||||
return Painting::CanvasPaintable::create(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user