mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 12:15: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
|
@ -4,6 +4,7 @@ void ParentNode::append_child(Retained<Node> node)
|
|||
{
|
||||
if (m_last_child)
|
||||
m_last_child->set_next_sibling(node.ptr());
|
||||
node->set_parent_node({}, this);
|
||||
m_last_child = &node.leak_ref();
|
||||
if (!m_first_child)
|
||||
m_first_child = m_last_child;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue