mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
Browser: Move InspectorWidget into the Browser namespace
This commit is contained in:
parent
c24304dca3
commit
788293ead8
Notes:
sideshowbarker
2024-07-19 06:50:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/788293ead83
2 changed files with 9 additions and 1 deletions
|
@ -27,14 +27,16 @@
|
|||
#include "InspectorWidget.h"
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Splitter.h>
|
||||
#include <LibGUI/TabWidget.h>
|
||||
#include <LibGUI/TableView.h>
|
||||
#include <LibGUI/TreeView.h>
|
||||
#include <LibGUI/TabWidget.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/DOMTreeModel.h>
|
||||
#include <LibWeb/StylePropertiesModel.h>
|
||||
|
||||
namespace Browser {
|
||||
|
||||
InspectorWidget::InspectorWidget()
|
||||
{
|
||||
set_layout<GUI::VerticalBoxLayout>();
|
||||
|
@ -75,3 +77,5 @@ void InspectorWidget::set_document(Web::Document* document)
|
|||
m_document = document;
|
||||
m_dom_tree_view->set_model(Web::DOMTreeModel::create(*document));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
#include <LibGUI/Widget.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
namespace Browser {
|
||||
|
||||
class InspectorWidget final : public GUI::Widget {
|
||||
C_OBJECT(InspectorWidget)
|
||||
public:
|
||||
|
@ -42,3 +44,5 @@ private:
|
|||
RefPtr<GUI::TableView> m_computed_style_table_view;
|
||||
RefPtr<Web::Document> m_document;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue