summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-05-16 15:16:45 -0400
committerTim Flynn <trflynn89@pm.me>2023-05-16 13:22:23 -0700
commitd1a1b1ab75e69444a68b24ba7a20d9b22d038f91 (patch)
tree17fdfe54af996ffcd10636bfce15f12f76d57f51 /Userland/Libraries
parent77008d4bac0b2eaf4c46e59e3d262fd89d00e355 (diff)
downloadserenity-d1a1b1ab75e69444a68b24ba7a20d9b22d038f91.zip
LibWebView: Remove the DumpLayoutTree program
This program's purpose is now achieved with headless-browser, which has the added benefit of being runnable outside of Serenity.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWebView/CMakeLists.txt2
-rw-r--r--Userland/Libraries/LibWebView/DumpLayoutTree/CMakeLists.txt6
-rw-r--r--Userland/Libraries/LibWebView/DumpLayoutTree/main.cpp27
3 files changed, 0 insertions, 35 deletions
diff --git a/Userland/Libraries/LibWebView/CMakeLists.txt b/Userland/Libraries/LibWebView/CMakeLists.txt
index 1147a4c0ef..a5801519e3 100644
--- a/Userland/Libraries/LibWebView/CMakeLists.txt
+++ b/Userland/Libraries/LibWebView/CMakeLists.txt
@@ -18,5 +18,3 @@ set(GENERATED_SOURCES
serenity_lib(LibWebView webview)
target_link_libraries(LibWebView PRIVATE LibCore LibFileSystemAccessClient LibGfx LibGUI LibIPC LibProtocol LibWeb)
-
-add_subdirectory(DumpLayoutTree)
diff --git a/Userland/Libraries/LibWebView/DumpLayoutTree/CMakeLists.txt b/Userland/Libraries/LibWebView/DumpLayoutTree/CMakeLists.txt
deleted file mode 100644
index 6eb761c1d5..0000000000
--- a/Userland/Libraries/LibWebView/DumpLayoutTree/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-set(SOURCES
- main.cpp
-)
-
-serenity_bin(DumpLayoutTree)
-target_link_libraries(DumpLayoutTree PRIVATE LibWebView LibWeb)
diff --git a/Userland/Libraries/LibWebView/DumpLayoutTree/main.cpp b/Userland/Libraries/LibWebView/DumpLayoutTree/main.cpp
deleted file mode 100644
index 0f7e824f39..0000000000
--- a/Userland/Libraries/LibWebView/DumpLayoutTree/main.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#include <LibGUI/Application.h>
-#include <LibGUI/Window.h>
-#include <LibWebView/OutOfProcessWebView.h>
-#include <unistd.h>
-
-int main(int argc, char** argv)
-{
- auto app = GUI::Application::construct(argc, argv);
- auto window = GUI::Window::construct();
- window->set_title("DumpLayoutTree");
- window->resize(800, 600);
- window->show();
- auto web_view = window->set_main_widget<WebView::OutOfProcessWebView>().release_value_but_fixme_should_propagate_errors();
- web_view->load(URL::create_with_file_scheme(argv[1]));
- web_view->on_load_finish = [&](auto&) {
- auto dump = web_view->dump_layout_tree();
- write(STDOUT_FILENO, dump.characters(), dump.length() + 1);
- _exit(0);
- };
- return app->exec();
-}