diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/TextPaintable.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/TextPaintable.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/TextPaintable.cpp b/Userland/Libraries/LibWeb/Painting/TextPaintable.cpp index 69db64ffdc..00bf0f9978 100644 --- a/Userland/Libraries/LibWeb/Painting/TextPaintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/TextPaintable.cpp @@ -4,13 +4,16 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <LibWeb/HTML/BrowsingContext.h> +#include <LibWeb/Layout/Label.h> +#include <LibWeb/Page/EventHandler.h> #include <LibWeb/Painting/TextPaintable.h> namespace Web::Painting { -NonnullOwnPtr<TextPaintable> TextPaintable::create(Layout::TextNode const& layout_node) +NonnullRefPtr<TextPaintable> TextPaintable::create(Layout::TextNode const& layout_node) { - return adopt_own(*new TextPaintable(layout_node)); + return adopt_ref(*new TextPaintable(layout_node)); } TextPaintable::TextPaintable(Layout::TextNode const& layout_node) |