mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
LibHTML: Start fleshing out a basic layout tree.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <LibHTML/Text.h>
|
||||
#include <LibHTML/LayoutText.h>
|
||||
|
||||
Text::Text(const String& data)
|
||||
: Node(NodeType::TEXT_NODE)
|
||||
@@ -10,4 +11,7 @@ Text::~Text()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
RetainPtr<LayoutNode> Text::create_layout_node()
|
||||
{
|
||||
return adopt(*new LayoutText(*this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user