1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:35:07 +00:00

LibHTML: Create some subdirectories.

This commit is contained in:
Andreas Kling 2019-06-15 23:41:15 +02:00
parent 0522a8f71c
commit 1f51c2b7da
25 changed files with 49 additions and 50 deletions

View file

@ -1,33 +0,0 @@
#include <LibHTML/LayoutNode.h>
LayoutNode::LayoutNode(const Node* node)
: m_node(node)
{
}
LayoutNode::~LayoutNode()
{
}
void LayoutNode::retain()
{
ASSERT(m_retain_count);
++m_retain_count;
}
void LayoutNode::release()
{
ASSERT(m_retain_count);
if (!--m_retain_count)
delete this;
}
void LayoutNode::append_child(Retained<LayoutNode> node)
{
if (m_last_child)
m_last_child->set_next_sibling(node.ptr());
node->m_parent_node = this;
m_last_child = &node.leak_ref();
if (!m_first_child)
m_first_child = m_last_child;
}