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:
parent
9f0ca1bfb0
commit
bd857cd0fa
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue