diff options
author | Andreas Kling <kling@serenityos.org> | 2023-03-18 20:22:58 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-18 20:23:35 +0100 |
commit | 72d817d4ea2476252160ac52936a2871a2c25ae1 (patch) | |
tree | 6b68c6d91eb22f3e0738cd4fb233dea3719cdaf8 /Userland/Applications/Browser/BrowserWindow.cpp | |
parent | a13c21c80761127cd5913a766dc8d55f4c04ad0e (diff) | |
download | serenity-72d817d4ea2476252160ac52936a2871a2c25ae1.zip |
LibWeb+Browser+Ladybird: Add menu action to dump paint tree
Diffstat (limited to 'Userland/Applications/Browser/BrowserWindow.cpp')
-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 e5fbf64b36..c8ca1c6b93 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -365,6 +365,11 @@ void BrowserWindow::build_menus() }, this)); debug_menu.add_action(GUI::Action::create( + "Dump &Paint Tree", g_icon_bag.layout, [this](auto&) { + active_tab().view().debug_request("dump-paint-tree"); + }, + this)); + debug_menu.add_action(GUI::Action::create( "Dump S&tacking Context Tree", g_icon_bag.layers, [this](auto&) { active_tab().view().debug_request("dump-stacking-context-tree"); }, |