diff options
author | Andreas Kling <kling@serenityos.org> | 2023-01-27 10:41:24 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-27 10:41:24 +0100 |
commit | ddbdeb3ca0fe2d84e6c28f8f287f6a24f365c884 (patch) | |
tree | 850486053140d102ab7a923367f68bb3c75c6f16 /Ladybird/WebContentView.cpp | |
parent | 90fee392904ea53c1799a0282700547e05cf6589 (diff) | |
download | serenity-ddbdeb3ca0fe2d84e6c28f8f287f6a24f365c884.zip |
Ladybird: Add --dump-layout-tree mode that dumps layout tree and exits
Diffstat (limited to 'Ladybird/WebContentView.cpp')
-rw-r--r-- | Ladybird/WebContentView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 8d9f99143f..c0fa8a5e4d 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -1055,3 +1055,8 @@ void WebContentView::notify_server_did_get_accessibility_tree(DeprecatedString c { dbgln("TODO: support accessibility tree in Ladybird"); } + +ErrorOr<String> WebContentView::dump_layout_tree() +{ + return String::from_deprecated_string(client().dump_layout_tree()); +} |