2022-03-10 16:46:44 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2022-03-10 22:38:08 +01:00
|
|
|
#include <LibWeb/HTML/BrowsingContext.h>
|
|
|
|
#include <LibWeb/Layout/Label.h>
|
|
|
|
#include <LibWeb/Page/EventHandler.h>
|
2022-03-10 16:46:44 +01:00
|
|
|
#include <LibWeb/Painting/TextPaintable.h>
|
|
|
|
|
|
|
|
namespace Web::Painting {
|
|
|
|
|
2022-03-10 22:38:08 +01:00
|
|
|
NonnullRefPtr<TextPaintable> TextPaintable::create(Layout::TextNode const& layout_node)
|
2022-03-10 16:46:44 +01:00
|
|
|
{
|
2022-03-10 22:38:08 +01:00
|
|
|
return adopt_ref(*new TextPaintable(layout_node));
|
2022-03-10 16:46:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
TextPaintable::TextPaintable(Layout::TextNode const& layout_node)
|
|
|
|
: Paintable(layout_node)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|