瀏覽代碼

LibWebView: Move StylePropertiesModel to LibWebView

This patch has no functional changes.
DexesTTP 3 年之前
父節點
當前提交
962040b49c

+ 4 - 4
Userland/Applications/Browser/InspectorWidget.cpp

@@ -15,9 +15,9 @@
 #include <LibGUI/TreeView.h>
 #include <LibGUI/TreeView.h>
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/DOM/Document.h>
 #include <LibWeb/DOM/Element.h>
 #include <LibWeb/DOM/Element.h>
-#include <LibWeb/StylePropertiesModel.h>
 #include <LibWebView/DOMTreeModel.h>
 #include <LibWebView/DOMTreeModel.h>
 #include <LibWebView/OutOfProcessWebView.h>
 #include <LibWebView/OutOfProcessWebView.h>
+#include <LibWebView/StylePropertiesModel.h>
 
 
 namespace Browser {
 namespace Browser {
 
 
@@ -161,15 +161,15 @@ void InspectorWidget::set_dom_node_properties_json(Selection selection, String s
 void InspectorWidget::load_style_json(String specified_values_json, String computed_values_json, String custom_properties_json)
 void InspectorWidget::load_style_json(String specified_values_json, String computed_values_json, String custom_properties_json)
 {
 {
     m_selection_specified_values_json = specified_values_json;
     m_selection_specified_values_json = specified_values_json;
-    m_computed_style_table_view->set_model(Web::StylePropertiesModel::create(m_selection_specified_values_json.value().view()));
+    m_computed_style_table_view->set_model(WebView::StylePropertiesModel::create(m_selection_specified_values_json.value().view()));
     m_computed_style_table_view->set_searchable(true);
     m_computed_style_table_view->set_searchable(true);
 
 
     m_selection_computed_values_json = computed_values_json;
     m_selection_computed_values_json = computed_values_json;
-    m_resolved_style_table_view->set_model(Web::StylePropertiesModel::create(m_selection_computed_values_json.value().view()));
+    m_resolved_style_table_view->set_model(WebView::StylePropertiesModel::create(m_selection_computed_values_json.value().view()));
     m_resolved_style_table_view->set_searchable(true);
     m_resolved_style_table_view->set_searchable(true);
 
 
     m_selection_custom_properties_json = custom_properties_json;
     m_selection_custom_properties_json = custom_properties_json;
-    m_custom_properties_table_view->set_model(Web::StylePropertiesModel::create(m_selection_custom_properties_json.value().view()));
+    m_custom_properties_table_view->set_model(WebView::StylePropertiesModel::create(m_selection_custom_properties_json.value().view()));
     m_custom_properties_table_view->set_searchable(true);
     m_custom_properties_table_view->set_searchable(true);
 }
 }
 
 

+ 0 - 1
Userland/Libraries/LibWeb/CMakeLists.txt

@@ -334,7 +334,6 @@ set(SOURCES
     SVG/TagNames.cpp
     SVG/TagNames.cpp
     SVG/ViewBox.cpp
     SVG/ViewBox.cpp
     Selection/Selection.cpp
     Selection/Selection.cpp
-    StylePropertiesModel.cpp
     UIEvents/EventNames.cpp
     UIEvents/EventNames.cpp
     UIEvents/FocusEvent.cpp
     UIEvents/FocusEvent.cpp
     UIEvents/KeyboardEvent.cpp
     UIEvents/KeyboardEvent.cpp

+ 1 - 0
Userland/Libraries/LibWebView/CMakeLists.txt

@@ -1,6 +1,7 @@
 set(SOURCES
 set(SOURCES
     DOMTreeModel.cpp
     DOMTreeModel.cpp
     OutOfProcessWebView.cpp
     OutOfProcessWebView.cpp
+    StylePropertiesModel.cpp
     WebContentClient.cpp
     WebContentClient.cpp
 )
 )
 
 

+ 1 - 1
Userland/Libraries/LibWeb/StylePropertiesModel.cpp → Userland/Libraries/LibWebView/StylePropertiesModel.cpp

@@ -8,7 +8,7 @@
 #include "StylePropertiesModel.h"
 #include "StylePropertiesModel.h"
 #include <AK/QuickSort.h>
 #include <AK/QuickSort.h>
 
 
-namespace Web {
+namespace WebView {
 
 
 StylePropertiesModel::StylePropertiesModel(JsonObject properties)
 StylePropertiesModel::StylePropertiesModel(JsonObject properties)
     : m_properties(move(properties))
     : m_properties(move(properties))

+ 1 - 1
Userland/Libraries/LibWeb/StylePropertiesModel.h → Userland/Libraries/LibWebView/StylePropertiesModel.h

@@ -11,7 +11,7 @@
 #include <LibGUI/Model.h>
 #include <LibGUI/Model.h>
 #include <LibWeb/CSS/StyleProperties.h>
 #include <LibWeb/CSS/StyleProperties.h>
 
 
-namespace Web {
+namespace WebView {
 
 
 class StylePropertiesModel final : public GUI::Model {
 class StylePropertiesModel final : public GUI::Model {
 public:
 public: