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:
Aliaksandr Kalenik 2025-07-10 02:05:28 +02:00 committed by Jelle Raaijmakers
commit 8ae7417445
Notes: github-actions[bot] 2025-07-13 17:16:19 +00:00
11 changed files with 332 additions and 10 deletions

View file

@ -257,4 +257,9 @@ bool Internals::headless()
return page().client().is_headless();
}
String Internals::dump_display_list()
{
return window().associated_document().dump_display_list();
}
}