summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorDexesTTP <dexes.ttp@gmail.com>2022-04-30 11:13:33 +0200
committerAndreas Kling <kling@serenityos.org>2022-05-15 12:17:36 +0200
commitb797e1e2b95c3e91849b4726cfd1871d285b6f55 (patch)
tree1feb4d03897150ed5845db5b453e6b4087017bff /Userland/Libraries
parent97a67f55012ff1a084f007b2a880a6389cc2e1b9 (diff)
downloadserenity-b797e1e2b95c3e91849b4726cfd1871d285b6f55.zip
LibWebView: Move DOMTreeModel to LibWebView
This patch has no functional changes.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/CMakeLists.txt1
-rw-r--r--Userland/Libraries/LibWebView/CMakeLists.txt1
-rw-r--r--Userland/Libraries/LibWebView/DOMTreeModel.cpp (renamed from Userland/Libraries/LibWeb/DOMTreeModel.cpp)4
-rw-r--r--Userland/Libraries/LibWebView/DOMTreeModel.h (renamed from Userland/Libraries/LibWeb/DOMTreeModel.h)2
4 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/CMakeLists.txt b/Userland/Libraries/LibWeb/CMakeLists.txt
index a604242a69..e6ce88278b 100644
--- a/Userland/Libraries/LibWeb/CMakeLists.txt
+++ b/Userland/Libraries/LibWeb/CMakeLists.txt
@@ -109,7 +109,6 @@ set(SOURCES
DOM/Text.idl
DOM/TreeWalker.cpp
DOMParsing/InnerHTML.cpp
- DOMTreeModel.cpp
Dump.cpp
Encoding/TextDecoder.cpp
Encoding/TextEncoder.cpp
diff --git a/Userland/Libraries/LibWebView/CMakeLists.txt b/Userland/Libraries/LibWebView/CMakeLists.txt
index 06238edc75..4f9d9ce159 100644
--- a/Userland/Libraries/LibWebView/CMakeLists.txt
+++ b/Userland/Libraries/LibWebView/CMakeLists.txt
@@ -1,4 +1,5 @@
set(SOURCES
+ DOMTreeModel.cpp
OutOfProcessWebView.cpp
WebContentClient.cpp
)
diff --git a/Userland/Libraries/LibWeb/DOMTreeModel.cpp b/Userland/Libraries/LibWebView/DOMTreeModel.cpp
index dbfca80b34..404e9b4eed 100644
--- a/Userland/Libraries/LibWeb/DOMTreeModel.cpp
+++ b/Userland/Libraries/LibWebView/DOMTreeModel.cpp
@@ -12,7 +12,7 @@
#include <LibGfx/Palette.h>
#include <ctype.h>
-namespace Web {
+namespace WebView {
DOMTreeModel::DOMTreeModel(JsonObject dom_tree, GUI::TreeView& tree_view)
: m_tree_view(tree_view)
@@ -214,7 +214,7 @@ GUI::ModelIndex DOMTreeModel::index_for_node(i32 node_id, Optional<Web::CSS::Sel
}
}
- dbgln("Didn't find index for node {}, pseudo-element {}!", node_id, pseudo_element.has_value() ? CSS::pseudo_element_name(pseudo_element.value()) : "NONE");
+ dbgln("Didn't find index for node {}, pseudo-element {}!", node_id, pseudo_element.has_value() ? Web::CSS::pseudo_element_name(pseudo_element.value()) : "NONE");
return {};
}
diff --git a/Userland/Libraries/LibWeb/DOMTreeModel.h b/Userland/Libraries/LibWebView/DOMTreeModel.h
index 2d971a1384..019b230357 100644
--- a/Userland/Libraries/LibWeb/DOMTreeModel.h
+++ b/Userland/Libraries/LibWebView/DOMTreeModel.h
@@ -13,7 +13,7 @@
#include <LibWeb/CSS/Selector.h>
#include <LibWeb/Forward.h>
-namespace Web {
+namespace WebView {
class DOMTreeModel final : public GUI::Model {
public: