summaryrefslogtreecommitdiff
path: root/Ladybird/WebContentView.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-01-27 10:41:24 +0100
committerAndreas Kling <kling@serenityos.org>2023-01-27 10:41:24 +0100
commitddbdeb3ca0fe2d84e6c28f8f287f6a24f365c884 (patch)
tree850486053140d102ab7a923367f68bb3c75c6f16 /Ladybird/WebContentView.cpp
parent90fee392904ea53c1799a0282700547e05cf6589 (diff)
downloadserenity-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.cpp5
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());
+}