1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:37:35 +00: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
5 changed files with 68 additions and 0 deletions

View file

@ -176,6 +176,12 @@ BrowserWindow::BrowserWindow(Browser::CookieJar& cookie_jar, StringView webdrive
debug_request("dump-layout-tree");
});
auto* dump_paint_tree_action = new QAction("Dump Paint Tree", this);
debug_menu->addAction(dump_paint_tree_action);
QObject::connect(dump_paint_tree_action, &QAction::triggered, this, [this] {
debug_request("dump-paint-tree");
});
auto* dump_stacking_context_tree_action = new QAction("Dump Stacking Context Tree", this);
dump_stacking_context_tree_action->setIcon(QIcon(QString("%1/res/icons/16x16/layers.png").arg(s_serenity_resource_root.characters())));
debug_menu->addAction(dump_stacking_context_tree_action);