mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 17:58:49 +00:00
LibWeb: Add opt-in tracing of invalidate_layout_tree() calls with reason
This commit is contained in:
parent
c333042e63
commit
415079bc11
Notes:
github-actions[bot]
2025-03-08 02:39:05 +00:00
Author: https://github.com/awesomekling
Commit: 415079bc11
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3852
8 changed files with 46 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue