1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

LibWeb: Rename LayoutNode::node() => LayoutNode::dom_node()

This commit is contained in:
Andreas Kling 2020-11-22 14:46:36 +01:00
parent 85859544fa
commit f358f2255f
30 changed files with 92 additions and 92 deletions

View file

@ -37,16 +37,16 @@ namespace Web {
LayoutNode::LayoutNode(DOM::Document& document, DOM::Node* node)
: m_document(document)
, m_node(node)
, m_dom_node(node)
{
if (m_node)
m_node->set_layout_node({}, this);
if (m_dom_node)
m_dom_node->set_layout_node({}, this);
}
LayoutNode::~LayoutNode()
{
if (m_node && m_node->layout_node() == this)
m_node->set_layout_node({}, nullptr);
if (m_dom_node && m_dom_node->layout_node() == this)
m_dom_node->set_layout_node({}, nullptr);
}
bool LayoutNode::can_contain_boxes_with_position_absolute() const