diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-05 19:01:12 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-05 22:50:39 +0100 |
commit | 270aa9e5d074a5c77b4b24fe553edbc3c6c554d8 (patch) | |
tree | 55b02f688ee36e13da02a2b0c8768b56697e2638 /Userland/Applications/Browser | |
parent | e2c71b67253fa90a59fdb93b4b2aecf1bed561e9 (diff) | |
download | serenity-270aa9e5d074a5c77b4b24fe553edbc3c6c554d8.zip |
Browser: Add Debug menu action for dumping the stacking context tree
Diffstat (limited to 'Userland/Applications/Browser')
-rw-r--r-- | Userland/Applications/Browser/BrowserWindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index 99607fb094..ba84ef87d9 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -289,6 +289,11 @@ void BrowserWindow::build_menus() }, this)); debug_menu.add_action(GUI::Action::create( + "Dump &Stacking Context Tree", [this](auto&) { + active_tab().m_web_content_view->debug_request("dump-stacking-context-tree"); + }, + this)); + debug_menu.add_action(GUI::Action::create( "Dump &Style Sheets", [this](auto&) { active_tab().m_web_content_view->debug_request("dump-style-sheets"); }, |