2019-06-15 18:41:15 -03:00
|
|
|
#include <LibHTML/DOM/Text.h>
|
|
|
|
|
#include <LibHTML/Layout/LayoutText.h>
|
2019-06-15 13:55:47 -03:00
|
|
|
|
|
|
|
|
Text::Text(const String& data)
|
|
|
|
|
: Node(NodeType::TEXT_NODE)
|
|
|
|
|
, m_data(data)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Text::~Text()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-21 13:37:47 -03:00
|
|
|
RefPtr<LayoutNode> Text::create_layout_node()
|
2019-06-15 17:49:44 -03:00
|
|
|
{
|
|
|
|
|
return adopt(*new LayoutText(*this));
|
|
|
|
|
}
|