1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibWeb+Browser+Ladybird: Add menu action to dump paint tree

This commit is contained in:
Andreas Kling 2023-03-18 20:22:58 +01:00
parent a13c21c807
commit 72d817d4ea
Notes: sideshowbarker 2024-07-17 01:04:03 +09:00
5 changed files with 68 additions and 0 deletions

View file

@ -341,6 +341,13 @@ void ConnectionFromClient::debug_request(DeprecatedString const& request, Deprec
}
}
if (request == "dump-paint-tree") {
if (auto* doc = page().top_level_browsing_context().active_document()) {
if (auto* paintable = doc->paintable())
Web::dump_tree(*paintable);
}
}
if (request == "dump-stacking-context-tree") {
if (auto* doc = page().top_level_browsing_context().active_document()) {
if (auto* viewport = doc->layout_node()) {