1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 04:15:06 +00:00
serenity/LibHTML/Node.cpp
2019-06-15 22:49:44 +02:00

34 lines
483 B
C++

#include <LibHTML/Node.h>
#include <LibHTML/LayoutNode.h>
Node::Node(NodeType type)
: m_type(type)
{
}
Node::~Node()
{
}
void Node::retain()
{
ASSERT(m_retain_count);
++m_retain_count;
}
void Node::release()
{
ASSERT(m_retain_count);
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);
}