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

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

Text::~Text()
{
}

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