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:
parent
a13c21c807
commit
72d817d4ea
Notes:
sideshowbarker
2024-07-17 01:04:03 +09:00
Author: https://github.com/awesomekling
Commit: 72d817d4ea
5 changed files with 68 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue