mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Make Paintable ref-counted
This will allow us to use a protective NonnullRefPtr to keep paintables alive while running arbitrary JavaScript in response to events.
This commit is contained in:
@@ -21,7 +21,7 @@ Progress::~Progress()
|
||||
{
|
||||
}
|
||||
|
||||
OwnPtr<Painting::Paintable> Progress::create_paintable() const
|
||||
RefPtr<Painting::Paintable> Progress::create_paintable() const
|
||||
{
|
||||
return Painting::ProgressPaintable::create(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user