mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibHTML: Add inserted_into() and removed_from() TreeNode callbacks
These will be called when a Node or LayoutNode is inserted or removed from a tree. They get the parent node as an argument.
This commit is contained in:
parent
402c6de5c9
commit
7912592f89
4 changed files with 26 additions and 5 deletions
|
@ -64,6 +64,9 @@ public:
|
|||
|
||||
const StyleProperties& style_properties() const { return m_style_properties; }
|
||||
|
||||
void inserted_into(LayoutNode&) {}
|
||||
void removed_from(LayoutNode&) {}
|
||||
|
||||
protected:
|
||||
explicit LayoutNode(const Node*, StyleProperties&&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue