1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 23:15:08 +00:00
serenity/LibHTML/Node.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

24 lines
297 B
C++

#include <AK/Retained.h>
#include <LibHTML/Node.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;
}