1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:45:07 +00:00

Browser: Add a debug menu action to dump the current style sheets

This commit is contained in:
Andreas Kling 2019-11-21 19:52:09 +01:00
parent 9f0ca1bfb0
commit bd857cd0fa

View file

@ -163,6 +163,11 @@ int main(int argc, char** argv)
debug_menu->add_action(GAction::create("Dump Layout tree", [&](auto&) {
dump_tree(*html_widget->document()->layout_node());
}));
debug_menu->add_action(GAction::create("Dump Style sheets", [&](auto&) {
for (auto& sheet : html_widget->document()->stylesheets()) {
dump_sheet(sheet);
}
}));
debug_menu->add_separator();
auto line_box_borders_action = GAction::create("Line box borders", [&](auto& action) {
action.set_checked(!action.is_checked());