LibWeb: Use IterationDecision in single level Node iteration methods

`Node::for_each_child()` and `Node::for_each_child_of_type()` callbacks
now return an `IterationDecision`, which allows us to break early if
required.
This commit is contained in:
Tim Ledbetter 2024-05-04 14:59:52 +01:00 committed by Andrew Kaster
commit c57d395a48
Notes: sideshowbarker 2024-07-17 02:35:27 +09:00
25 changed files with 81 additions and 27 deletions

View file

@ -58,6 +58,8 @@ void HTMLTemplateElement::cloned(Node& copy, bool clone_children)
// FIXME: Should this use TreeNode::append_child instead?
MUST(template_clone.content()->append_child(cloned_child));
return IterationDecision::Continue;
});
}