diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/Paintable.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/Paintable.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/Paintable.h b/Userland/Libraries/LibWeb/Painting/Paintable.h index e81e0ad5c0..c632bd2601 100644 --- a/Userland/Libraries/LibWeb/Painting/Paintable.h +++ b/Userland/Libraries/LibWeb/Painting/Paintable.h @@ -14,7 +14,7 @@ namespace Web::Painting { -class Paintable { +class Paintable : public RefCounted<Paintable> { AK_MAKE_NONMOVABLE(Paintable); AK_MAKE_NONCOPYABLE(Paintable); @@ -40,7 +40,7 @@ private: class PaintableBox : public Paintable { public: - static NonnullOwnPtr<PaintableBox> create(Layout::Box const&); + static NonnullRefPtr<PaintableBox> create(Layout::Box const&); virtual ~PaintableBox(); virtual void paint(PaintContext&, PaintPhase) const override; @@ -154,9 +154,9 @@ private: class PaintableWithLines : public PaintableBox { public: - static NonnullOwnPtr<PaintableWithLines> create(Layout::BlockContainer const& block_container) + static NonnullRefPtr<PaintableWithLines> create(Layout::BlockContainer const& block_container) { - return adopt_own(*new PaintableWithLines(block_container)); + return adopt_ref(*new PaintableWithLines(block_container)); } virtual ~PaintableWithLines() override; |