mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09: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
Notes:
sideshowbarker
2024-07-18 04:52:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: fe820f6d5a
Pull-request: https://github.com/SerenityOS/serenity/pull/9725
Issue: https://github.com/SerenityOS/serenity/issues/8935
Reviewed-by: https://github.com/awesomekling
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