mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
LibHTML: Start working on a simple HTML library.
I'd like to have rich text, and we might as well use HTML for that. :^)
This commit is contained in:
10
LibHTML/ParentNode.cpp
Normal file
10
LibHTML/ParentNode.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <LibHTML/ParentNode.h>
|
||||
|
||||
void ParentNode::append_child(Retained<Node> node)
|
||||
{
|
||||
if (m_last_child)
|
||||
m_last_child->set_next_sibling(node.ptr());
|
||||
m_last_child = &node.leak_ref();
|
||||
if (!m_first_child)
|
||||
m_first_child = m_last_child;
|
||||
}
|
||||
Reference in New Issue
Block a user