diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/Paintable.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/Paintable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/Paintable.cpp b/Userland/Libraries/LibWeb/Painting/Paintable.cpp index dd2b2c176b..2e9eda8f9c 100644 --- a/Userland/Libraries/LibWeb/Painting/Paintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/Paintable.cpp @@ -13,9 +13,9 @@ namespace Web::Painting { -NonnullOwnPtr<PaintableBox> PaintableBox::create(Layout::Box const& layout_box) +NonnullRefPtr<PaintableBox> PaintableBox::create(Layout::Box const& layout_box) { - return adopt_own(*new PaintableBox(layout_box)); + return adopt_ref(*new PaintableBox(layout_box)); } PaintableBox::PaintableBox(Layout::Box const& layout_box) |