summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/InspectorWidget.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@gmail.com>2021-08-24 17:04:30 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-02 22:16:41 +0200
commitfe820f6d5aa1f9b66a424b4c8f79596c3d611240 (patch)
treec01f7ae6f0d1a1dc2b107b447111984e5fd2a087 /Userland/Applications/Browser/InspectorWidget.cpp
parent57ee7b3d561ef1bb24ba899a9eeeaa0c99c60b37 (diff)
downloadserenity-fe820f6d5aa1f9b66a424b4c8f79596c3d611240.zip
LibWeb: Replace unused DOMTreeModel with DOMTreeJSONModel
The direct-Document-access DOMTreeModel is no longer used, since the DOM Inspector has to access the Document remotely over IPC. This commit removes it, and renames DOMTreeJSONModel to take its place, since it no longer has to differentiate itself from the non-JSON one. In case that didn't make sense: - Delete DOMTreeModel - Rename DOMTreeJSONModel -> DOMTreeModel
Diffstat (limited to 'Userland/Applications/Browser/InspectorWidget.cpp')
-rw-r--r--Userland/Applications/Browser/InspectorWidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/InspectorWidget.cpp b/Userland/Applications/Browser/InspectorWidget.cpp
index 615f12b58c..4e95216359 100644
--- a/Userland/Applications/Browser/InspectorWidget.cpp
+++ b/Userland/Applications/Browser/InspectorWidget.cpp
@@ -13,7 +13,6 @@
#include <LibGUI/TreeView.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Element.h>
-#include <LibWeb/DOMTreeJSONModel.h>
#include <LibWeb/DOMTreeModel.h>
#include <LibWeb/StylePropertiesModel.h>
@@ -59,7 +58,7 @@ void InspectorWidget::set_dom_json(String json)
return;
m_dom_json = json;
- m_dom_tree_view->set_model(Web::DOMTreeJSONModel::create(m_dom_json->view()));
+ m_dom_tree_view->set_model(Web::DOMTreeModel::create(m_dom_json->view()));
// FIXME: Support the LayoutTreeModel
// m_layout_tree_view->set_model(Web::LayoutTreeModel::create(*document));