mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Add internals
call to dump display list
It's useful to have tests that dump display list items, so we can more easily see how changes to the display list recording process affect the output. Even the small sample test added in this commit shows that we currently record an unnecessary AddClipRect item for empty paint phases. For now, the dump doesn't include every single property of an item, but we can shape it to include more useful information as we iterate on it.
This commit is contained in:
parent
6be559f639
commit
8ae7417445
Notes:
github-actions[bot]
2025-07-13 17:16:19 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 8ae7417445
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5390
Reviewed-by: https://github.com/gmta ✅
11 changed files with 332 additions and 10 deletions
|
@ -257,4 +257,9 @@ bool Internals::headless()
|
|||
return page().client().is_headless();
|
||||
}
|
||||
|
||||
String Internals::dump_display_list()
|
||||
{
|
||||
return window().associated_document().dump_display_list();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue