mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +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
Notes:
sideshowbarker
2024-07-19 11:53:18 +09:00
Author: https://github.com/awesomekling
Commit: 7912592f89
4 changed files with 26 additions and 5 deletions
|
@ -55,6 +55,9 @@ public:
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
virtual void inserted_into(Node&) {}
|
||||
virtual void removed_from(Node&) {}
|
||||
|
||||
protected:
|
||||
Node(Document&, NodeType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue