mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00:00
LibWeb: Add opt-in tracing of set_needs_layout() calls with reason
This commit is contained in:
parent
415079bc11
commit
2abbf99a95
Notes:
github-actions[bot]
2025-03-08 02:39:00 +00:00
Author: https://github.com/awesomekling
Commit: 2abbf99a95
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3852
9 changed files with 50 additions and 12 deletions
|
@ -168,7 +168,7 @@ void SVGImageElement::fetch_the_document(URL::URL const& url)
|
|||
m_animation_timer->start();
|
||||
}
|
||||
set_needs_style_update(true);
|
||||
document().set_needs_layout();
|
||||
document().set_needs_layout(DOM::SetNeedsLayoutReason::SVGImageElementFetchTheDocument);
|
||||
|
||||
dispatch_event(DOM::Event::create(realm(), HTML::EventNames::load));
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue