mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +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
|
@ -402,6 +402,13 @@ BrowserWindow::BrowserWindow(Vector<URL::URL> const& initial_urls, IsPopupWindow
|
|||
debug_request("dump-stacking-context-tree");
|
||||
});
|
||||
|
||||
auto* dump_display_list = new QAction("Dump Display List", this);
|
||||
dump_display_list->setIcon(load_icon_from_uri("resource://icons/16x16/layout.png"sv));
|
||||
debug_menu->addAction(dump_display_list);
|
||||
QObject::connect(dump_display_list, &QAction::triggered, this, [this] {
|
||||
debug_request("dump-display-list");
|
||||
});
|
||||
|
||||
auto* dump_style_sheets_action = new QAction("Dump &Style Sheets", this);
|
||||
dump_style_sheets_action->setIcon(load_icon_from_uri("resource://icons/16x16/filetype-css.png"sv));
|
||||
debug_menu->addAction(dump_style_sheets_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue