mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 07:05:08 +00:00
LibHTML: Start fleshing out a basic layout tree.
This commit is contained in:
parent
f8a86b5164
commit
8a0e21b22b
24 changed files with 338 additions and 18 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue