mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Don't include DOM/NamedNodeMap.h from DOM/Element.h
This commit is contained in:
parent
f7678e2797
commit
67d2e32984
3 changed files with 14 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include <LibWeb/DOM/Document.h>
|
#include <LibWeb/DOM/Document.h>
|
||||||
#include <LibWeb/DOM/Element.h>
|
#include <LibWeb/DOM/Element.h>
|
||||||
#include <LibWeb/DOM/HTMLCollection.h>
|
#include <LibWeb/DOM/HTMLCollection.h>
|
||||||
|
#include <LibWeb/DOM/NamedNodeMap.h>
|
||||||
#include <LibWeb/DOM/ShadowRoot.h>
|
#include <LibWeb/DOM/ShadowRoot.h>
|
||||||
#include <LibWeb/DOM/Text.h>
|
#include <LibWeb/DOM/Text.h>
|
||||||
#include <LibWeb/DOMParsing/InnerHTML.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());
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#include <LibWeb/CSS/Selector.h>
|
#include <LibWeb/CSS/Selector.h>
|
||||||
#include <LibWeb/CSS/StyleProperty.h>
|
#include <LibWeb/CSS/StyleProperty.h>
|
||||||
#include <LibWeb/DOM/ChildNode.h>
|
#include <LibWeb/DOM/ChildNode.h>
|
||||||
#include <LibWeb/DOM/NamedNodeMap.h>
|
|
||||||
#include <LibWeb/DOM/NonDocumentTypeChildNode.h>
|
#include <LibWeb/DOM/NonDocumentTypeChildNode.h>
|
||||||
#include <LibWeb/DOM/ParentNode.h>
|
#include <LibWeb/DOM/ParentNode.h>
|
||||||
#include <LibWeb/DOM/QualifiedName.h>
|
#include <LibWeb/DOM/QualifiedName.h>
|
||||||
|
@ -89,7 +88,7 @@ public:
|
||||||
DeprecatedFlyString const& namespace_uri() const { return namespace_(); }
|
DeprecatedFlyString const& namespace_uri() const { return namespace_(); }
|
||||||
|
|
||||||
bool has_attribute(DeprecatedFlyString const& name) const;
|
bool has_attribute(DeprecatedFlyString const& name) const;
|
||||||
bool has_attributes() const { return !m_attributes->is_empty(); }
|
bool has_attributes() const;
|
||||||
DeprecatedString attribute(DeprecatedFlyString const& name) const { return get_attribute(name); }
|
DeprecatedString attribute(DeprecatedFlyString const& name) const { return get_attribute(name); }
|
||||||
DeprecatedString get_attribute(DeprecatedFlyString const& name) const;
|
DeprecatedString get_attribute(DeprecatedFlyString const& name) const;
|
||||||
WebIDL::ExceptionOr<void> set_attribute(DeprecatedFlyString const& name, DeprecatedString const& value);
|
WebIDL::ExceptionOr<void> set_attribute(DeprecatedFlyString const& name, DeprecatedString const& value);
|
||||||
|
@ -98,7 +97,7 @@ public:
|
||||||
WebIDL::ExceptionOr<JS::GCPtr<Attr>> set_attribute_node_ns(Attr&);
|
WebIDL::ExceptionOr<JS::GCPtr<Attr>> set_attribute_node_ns(Attr&);
|
||||||
void remove_attribute(DeprecatedFlyString const& name);
|
void remove_attribute(DeprecatedFlyString const& name);
|
||||||
WebIDL::ExceptionOr<bool> toggle_attribute(DeprecatedFlyString const& name, Optional<bool> force);
|
WebIDL::ExceptionOr<bool> toggle_attribute(DeprecatedFlyString const& name, Optional<bool> force);
|
||||||
size_t attribute_list_size() const { return m_attributes->length(); }
|
size_t attribute_list_size() const;
|
||||||
NamedNodeMap const* attributes() const { return m_attributes.ptr(); }
|
NamedNodeMap const* attributes() const { return m_attributes.ptr(); }
|
||||||
Vector<DeprecatedString> get_attribute_names() const;
|
Vector<DeprecatedString> get_attribute_names() const;
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#include <LibWeb/DOM/DocumentFragment.h>
|
#include <LibWeb/DOM/DocumentFragment.h>
|
||||||
#include <LibWeb/DOM/DocumentType.h>
|
#include <LibWeb/DOM/DocumentType.h>
|
||||||
#include <LibWeb/DOM/Element.h>
|
#include <LibWeb/DOM/Element.h>
|
||||||
|
#include <LibWeb/DOM/NamedNodeMap.h>
|
||||||
#include <LibWeb/DOM/Node.h>
|
#include <LibWeb/DOM/Node.h>
|
||||||
#include <LibWeb/DOM/ProcessingInstruction.h>
|
#include <LibWeb/DOM/ProcessingInstruction.h>
|
||||||
#include <LibWeb/DOM/Text.h>
|
#include <LibWeb/DOM/Text.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue