diff options
Diffstat (limited to 'LibHTML/Layout/LayoutNode.h')
-rw-r--r-- | LibHTML/Layout/LayoutNode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LibHTML/Layout/LayoutNode.h b/LibHTML/Layout/LayoutNode.h index ce1e040a8b..64341d86c5 100644 --- a/LibHTML/Layout/LayoutNode.h +++ b/LibHTML/Layout/LayoutNode.h @@ -25,6 +25,8 @@ public: bool is_anonymous() const { return !m_node; } const Node* node() const { return m_node; } + const LayoutNode* parent_layout_node() const { return m_parent_node; } + LayoutNode* next_sibling() { return m_next_sibling; } LayoutNode* previous_sibling() { return m_previous_sibling; } LayoutNode* first_child() { return m_first_child; } @@ -34,6 +36,8 @@ public: const LayoutNode* first_child() const { return m_first_child; } const LayoutNode* last_child() const { return m_last_child; } + bool has_children() const { return m_first_child; } + void append_child(Retained<LayoutNode>); void set_next_sibling(LayoutNode* node) { m_next_sibling = node; } |