mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00: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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue