diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2023-02-25 10:44:51 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-06 13:05:43 +0000 |
commit | c0b2fa74ace4a79ffaed4b7d57032e6586b54d97 (patch) | |
tree | ed0813460cebcd9b360d59f7be819e24c5283187 /Userland/Libraries/LibWeb/DOM/Attr.h | |
parent | 70a2ca7fc0939dd0d61691c17e108c6169ef6d30 (diff) | |
download | serenity-c0b2fa74ace4a79ffaed4b7d57032e6586b54d97.zip |
LibWeb: Fix a few const-ness issues
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Attr.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Attr.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Attr.h b/Userland/Libraries/LibWeb/DOM/Attr.h index 5fb1ecbfa9..d3d88bb69d 100644 --- a/Userland/Libraries/LibWeb/DOM/Attr.h +++ b/Userland/Libraries/LibWeb/DOM/Attr.h @@ -33,14 +33,13 @@ public: DeprecatedString const& value() const { return m_value; } void set_value(DeprecatedString value); - Element* owner_element(); Element const* owner_element() const; void set_owner_element(Element const* owner_element); // Always returns true: https://dom.spec.whatwg.org/#dom-attr-specified constexpr bool specified() const { return true; } - void handle_attribute_changes(Element&, DeprecatedString const& old_value, DeprecatedString const& new_value); + void handle_attribute_changes(Element const&, DeprecatedString const& old_value, DeprecatedString const& new_value); private: Attr(Document&, QualifiedName, DeprecatedString value, Element const*); @@ -50,7 +49,7 @@ private: QualifiedName m_qualified_name; DeprecatedString m_value; - JS::GCPtr<Element> m_owner_element; + JS::GCPtr<Element const> m_owner_element; }; template<> |