1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibWeb: Don't include DOM/NamedNodeMap.h from DOM/Element.h

This commit is contained in:
Andreas Kling 2023-05-08 07:10:24 +02:00 committed by Jelle Raaijmakers
parent f7678e2797
commit 67d2e32984
3 changed files with 14 additions and 3 deletions

View file

@ -20,6 +20,7 @@
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Element.h>
#include <LibWeb/DOM/HTMLCollection.h>
#include <LibWeb/DOM/NamedNodeMap.h>
#include <LibWeb/DOM/ShadowRoot.h>
#include <LibWeb/DOM/Text.h>
#include <LibWeb/DOMParsing/InnerHTML.h>
@ -1692,4 +1693,14 @@ Layout::NodeWithStyle const* Element::layout_node() const
return static_cast<Layout::NodeWithStyle const*>(Node::layout_node());
}
bool Element::has_attributes() const
{
return !m_attributes->is_empty();
}
size_t Element::attribute_list_size() const
{
return m_attributes->length();
}
}