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

@ -88,7 +88,7 @@ WebIDL::ExceptionOr<void> ShadowRoot::set_inner_html(StringView value)
if (this->is_connected()) {
// NOTE: Since the DOM has changed, we have to rebuild the layout tree.
this->document().invalidate_layout_tree();
this->document().invalidate_layout_tree(InvalidateLayoutTreeReason::ShadowRootSetInnerHTML);
}
}