mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
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
This commit is contained in:
parent
57ee7b3d56
commit
fe820f6d5a
6 changed files with 101 additions and 294 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue