summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/DOM/Text.cpp
blob: a066a767f646bea09e7595a93f1a66a8a23c647c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <LibHTML/DOM/Text.h>
#include <LibHTML/Layout/LayoutText.h>

Text::Text(Document& document, const String& data)
    : Node(document, NodeType::TEXT_NODE)
    , m_data(data)
{
}

Text::~Text()
{
}

RefPtr<LayoutNode> Text::create_layout_node(const StyleResolver&, const StyleProperties*) const
{
    return adopt(*new LayoutText(*this));
}