mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Add opt-in tracing of update_layout() calls with reason
This commit is contained in:
parent
c4b1d2382a
commit
c333042e63
Notes:
github-actions[bot]
2025-03-08 02:39:13 +00:00
Author: https://github.com/awesomekling
Commit: c333042e63
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3852
21 changed files with 137 additions and 52 deletions
|
@ -1157,7 +1157,7 @@ GC::Ref<Geometry::DOMRectList> Range::get_client_rects()
|
|||
if (!start_container()->document().navigable())
|
||||
return Geometry::DOMRectList::create(realm(), {});
|
||||
|
||||
start_container()->document().update_layout();
|
||||
start_container()->document().update_layout(DOM::UpdateLayoutReason::RangeGetClientRects);
|
||||
update_associated_selection();
|
||||
Vector<GC::Root<Geometry::DOMRect>> rects;
|
||||
// FIXME: take Range collapsed into consideration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue