mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
LibWeb: Make NamedNodeMap GC-allocated
This commit is contained in:
parent
ae11d70b0c
commit
a56b3f9862
7 changed files with 49 additions and 29 deletions
|
@ -59,7 +59,7 @@ public:
|
|||
void remove_attribute(FlyString const& name);
|
||||
DOM::ExceptionOr<bool> toggle_attribute(FlyString const& name, Optional<bool> force);
|
||||
size_t attribute_list_size() const { return m_attributes->length(); }
|
||||
NonnullRefPtr<NamedNodeMap> const& attributes() const { return m_attributes; }
|
||||
NamedNodeMap const* attributes() const { return m_attributes.cell(); }
|
||||
Vector<String> get_attribute_names() const;
|
||||
|
||||
RefPtr<DOMTokenList> const& class_list();
|
||||
|
@ -150,7 +150,7 @@ private:
|
|||
|
||||
QualifiedName m_qualified_name;
|
||||
String m_html_uppercased_qualified_name;
|
||||
NonnullRefPtr<NamedNodeMap> m_attributes;
|
||||
JS::Handle<NamedNodeMap> m_attributes;
|
||||
|
||||
JS::Handle<CSS::ElementInlineCSSStyleDeclaration> m_inline_style;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue