LibWeb: Use TraversalDecision for multi level Node traversal methods

This adds the `SkipChildrenAndContinue` option, where traversal
continues but child nodes are not included.
This commit is contained in:
Tim Ledbetter 2024-05-04 14:47:04 +01:00 committed by Andrew Kaster
commit 398bf10b92
Notes: sideshowbarker 2024-07-17 08:59:18 +09:00
33 changed files with 229 additions and 215 deletions

View file

@ -81,7 +81,7 @@ void SVGElement::update_use_elements_that_reference_this()
document().for_each_in_subtree_of_type<SVGUseElement>([this](SVGUseElement& use_element) {
use_element.svg_element_changed(*this);
return IterationDecision::Continue;
return TraversalDecision::Continue;
});
}
@ -100,7 +100,7 @@ void SVGElement::remove_from_use_element_that_reference_this()
document().for_each_in_subtree_of_type<SVGUseElement>([this](SVGUseElement& use_element) {
use_element.svg_element_removed(*this);
return IterationDecision::Continue;
return TraversalDecision::Continue;
});
}