1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 08:55:07 +00:00
serenity/LibHTML/ParentNode.cpp
Andreas Kling a67e823838 LibHTML: Start working on a simple HTML library.
I'd like to have rich text, and we might as well use HTML for that. :^)
2019-06-15 18:55:47 +02:00

10 lines
261 B
C++

#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;
}