LibWeb/DOM: Factor out 'live range pre remove steps' AO

This was a refactoring made in the DOM spec as part of the
introduction of the move before API.
This commit is contained in:
Shannon Booth 2025-03-08 03:45:12 +13:00 committed by Andrew Kaster
commit a47c4dbc63
Notes: github-actions[bot] 2025-04-26 14:46:49 +00:00
2 changed files with 34 additions and 19 deletions

View file

@ -589,6 +589,8 @@ protected:
private:
void queue_tree_mutation_record(Vector<GC::Root<Node>> added_nodes, Vector<GC::Root<Node>> removed_nodes, Node* previous_sibling, Node* next_sibling);
void live_range_pre_remove();
void insert_before_impl(GC::Ref<Node>, GC::Ptr<Node> child);
void append_child_impl(GC::Ref<Node>);
void remove_child_impl(GC::Ref<Node>);