LibWeb: Add opt-in tracing of invalidate_layout_tree() calls with reason

This commit is contained in:
Andreas Kling 2025-03-05 21:04:20 +01:00 committed by Alexander Kalenik
parent c333042e63
commit 415079bc11
Notes: github-actions[bot] 2025-03-08 02:39:05 +00:00
8 changed files with 46 additions and 12 deletions

View file

@ -185,7 +185,7 @@ void SVGUseElement::clone_element_tree_as_our_shadow_tree(Element* to_clone)
}
// FIXME: Only invalidate the part of the layout tree that is affected by this change.
document().invalidate_layout_tree();
document().invalidate_layout_tree(DOM::InvalidateLayoutTreeReason::SVGUseElement);
}
bool SVGUseElement::is_valid_reference_element(Element const& reference_element) const