mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 05:45:07 +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
|
@ -35,7 +35,7 @@
|
|||
|
||||
namespace Web {
|
||||
|
||||
LayoutTreeModel::LayoutTreeModel(Document& document)
|
||||
LayoutTreeModel::LayoutTreeModel(DOM::Document& document)
|
||||
: m_document(document)
|
||||
{
|
||||
m_document_icon.set_bitmap_for_size(16, Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-html.png"));
|
||||
|
@ -136,7 +136,7 @@ GUI::Variant LayoutTreeModel::data(const GUI::ModelIndex& index, Role role) cons
|
|||
} else if (!node.node()->is_element()) {
|
||||
builder.append(node.node()->node_name());
|
||||
} else {
|
||||
auto& element = downcast<Element>(*node.node());
|
||||
auto& element = downcast<DOM::Element>(*node.node());
|
||||
builder.append('<');
|
||||
builder.append(element.local_name());
|
||||
element.for_each_attribute([&](auto& name, auto& value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue