mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 13:05:07 +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,5 +1,5 @@
|
|||
#include <AK/Retained.h>
|
||||
#include <LibHTML/Node.h>
|
||||
#include <LibHTML/LayoutNode.h>
|
||||
|
||||
Node::Node(NodeType type)
|
||||
: m_type(type)
|
||||
|
@ -22,3 +22,13 @@ void Node::release()
|
|||
if (!--m_retain_count)
|
||||
delete this;
|
||||
}
|
||||
|
||||
RetainPtr<LayoutNode> Node::create_layout_node()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void Node::set_layout_node(Retained<LayoutNode> layout_node)
|
||||
{
|
||||
m_layout_node = move(layout_node);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue