mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
UI+WebContent: Add menu option to dump display list
This commit is contained in:
parent
8ae7417445
commit
f65db4507a
Notes:
github-actions[bot]
2025-07-13 17:16:11 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: f65db4507a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5390
Reviewed-by: https://github.com/gmta ✅
4 changed files with 23 additions and 0 deletions
|
|
@ -253,6 +253,14 @@ void ConnectionFromClient::debug_request(u64 page_id, ByteString request, ByteSt
|
|||
Web::dump_tree(*traversable);
|
||||
}
|
||||
|
||||
if (request == "dump-display-list") {
|
||||
if (auto* doc = page->page().top_level_browsing_context().active_document()) {
|
||||
auto display_list_dump = doc->dump_display_list();
|
||||
dbgln("{}", display_list_dump);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (request == "dump-dom-tree") {
|
||||
if (auto* doc = page->page().top_level_browsing_context().active_document())
|
||||
Web::dump_tree(*doc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue