1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Ladybird+Browser: Add a 'Dump All Resolved Styles' debug option

This option dumps all styles for all elements in the document; very
helpful for finding properties that have changed unintentionally :^)
This commit is contained in:
Ali Mohammad Pur 2023-05-27 15:33:08 +03:30 committed by Andreas Kling
parent 549260d311
commit e47f81d954
3 changed files with 32 additions and 0 deletions

View file

@ -364,6 +364,11 @@ void BrowserWindow::build_menus()
active_tab().view().debug_request("dump-style-sheets");
},
this));
debug_menu.add_action(GUI::Action::create(
"Dump &All Resolved Styles", g_icon_bag.filetype_css, [this](auto&) {
active_tab().view().debug_request("dump-all-resolved-styles");
},
this));
debug_menu.add_action(GUI::Action::create("Dump &History", { Mod_Ctrl, Key_H }, g_icon_bag.history, [this](auto&) {
active_tab().m_history.dump();
}));