mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibWeb: Move DOM classes into the Web::DOM namespace
LibWeb keeps growing and the Web namespace is filling up fast. Let's put DOM stuff into Web::DOM, just like we already started doing with SVG stuff in Web::SVG.
This commit is contained in:
parent
96d13f75cf
commit
11ff9d0f17
178 changed files with 516 additions and 523 deletions
|
@ -38,11 +38,11 @@
|
|||
|
||||
namespace Browser {
|
||||
|
||||
void InspectorWidget::set_inspected_node(Web::Node* node)
|
||||
void InspectorWidget::set_inspected_node(Web::DOM::Node* node)
|
||||
{
|
||||
m_document->set_inspected_node(node);
|
||||
if (node && node->is_element()) {
|
||||
auto& element = downcast<Web::Element>(*node);
|
||||
auto& element = downcast<Web::DOM::Element>(*node);
|
||||
if (element.resolved_style()) {
|
||||
m_style_table_view->set_model(Web::StylePropertiesModel::create(*element.resolved_style()));
|
||||
m_computed_style_table_view->set_model(Web::StylePropertiesModel::create(*element.computed_style()));
|
||||
|
@ -62,7 +62,7 @@ InspectorWidget::InspectorWidget()
|
|||
|
||||
m_dom_tree_view = top_tab_widget.add_tab<GUI::TreeView>("DOM");
|
||||
m_dom_tree_view->on_selection = [this](auto& index) {
|
||||
auto* node = static_cast<Web::Node*>(index.internal_data());
|
||||
auto* node = static_cast<Web::DOM::Node*>(index.internal_data());
|
||||
set_inspected_node(node);
|
||||
};
|
||||
|
||||
|
@ -82,7 +82,7 @@ InspectorWidget::~InspectorWidget()
|
|||
{
|
||||
}
|
||||
|
||||
void InspectorWidget::set_document(Web::Document* document)
|
||||
void InspectorWidget::set_document(Web::DOM::Document* document)
|
||||
{
|
||||
if (m_document == document)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue