diff --git a/Libraries/LibWeb/HTML/FormAssociatedElement.h b/Libraries/LibWeb/HTML/FormAssociatedElement.h index bf2c53f74e2..3e02ad553d4 100644 --- a/Libraries/LibWeb/HTML/FormAssociatedElement.h +++ b/Libraries/LibWeb/HTML/FormAssociatedElement.h @@ -49,7 +49,7 @@ private: { \ ElementBaseClass::attribute_changed(name, old_value, value, namespace_); \ form_node_attribute_changed(name, value); \ - form_associated_element_attribute_changed(name, value); \ + form_associated_element_attribute_changed(name, value, namespace_); \ } // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#selection-direction @@ -110,7 +110,7 @@ protected: virtual void form_associated_element_was_inserted() { } virtual void form_associated_element_was_removed(DOM::Node*) { } - virtual void form_associated_element_attribute_changed(FlyString const&, Optional const&) { } + virtual void form_associated_element_attribute_changed(FlyString const&, Optional const&, Optional const&) { } void form_node_was_inserted(); void form_node_was_removed(); diff --git a/Libraries/LibWeb/HTML/HTMLImageElement.cpp b/Libraries/LibWeb/HTML/HTMLImageElement.cpp index 2d5207c1aff..fbc453ac199 100644 --- a/Libraries/LibWeb/HTML/HTMLImageElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLImageElement.cpp @@ -113,7 +113,7 @@ void HTMLImageElement::apply_presentational_hints(CSS::StyleProperties& style) c }); } -void HTMLImageElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value) +void HTMLImageElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value, Optional const&) { if (name == HTML::AttributeNames::crossorigin) { m_cors_setting = cors_setting_attribute_from_keyword(value); diff --git a/Libraries/LibWeb/HTML/HTMLImageElement.h b/Libraries/LibWeb/HTML/HTMLImageElement.h index a7b06ee28ad..ddc8854e8bc 100644 --- a/Libraries/LibWeb/HTML/HTMLImageElement.h +++ b/Libraries/LibWeb/HTML/HTMLImageElement.h @@ -38,7 +38,7 @@ class HTMLImageElement final public: virtual ~HTMLImageElement() override; - virtual void form_associated_element_attribute_changed(FlyString const& name, Optional const& value) override; + virtual void form_associated_element_attribute_changed(FlyString const& name, Optional const& value, Optional const&) override; Optional alternative_text() const override { diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp index 25d96221fa7..607ce240fb5 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -1195,7 +1195,7 @@ void HTMLInputElement::did_lose_focus() commit_pending_changes(); } -void HTMLInputElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value) +void HTMLInputElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value, Optional const&) { if (name == HTML::AttributeNames::checked) { if (!value.has_value()) { diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.h b/Libraries/LibWeb/HTML/HTMLInputElement.h index bf2df331779..0990ab3153a 100644 --- a/Libraries/LibWeb/HTML/HTMLInputElement.h +++ b/Libraries/LibWeb/HTML/HTMLInputElement.h @@ -185,7 +185,7 @@ public: virtual void form_associated_element_was_inserted() override; virtual void form_associated_element_was_removed(DOM::Node*) override; - virtual void form_associated_element_attribute_changed(FlyString const&, Optional const&) override; + virtual void form_associated_element_attribute_changed(FlyString const&, Optional const&, Optional const&) override; virtual WebIDL::ExceptionOr cloned(Node&, bool) override; diff --git a/Libraries/LibWeb/HTML/HTMLObjectElement.cpp b/Libraries/LibWeb/HTML/HTMLObjectElement.cpp index aba1d2b115c..cbc48c862de 100644 --- a/Libraries/LibWeb/HTML/HTMLObjectElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLObjectElement.cpp @@ -78,7 +78,7 @@ void HTMLObjectElement::visit_edges(Cell::Visitor& visitor) visitor.visit(m_document_observer); } -void HTMLObjectElement::form_associated_element_attribute_changed(FlyString const& name, Optional const&) +void HTMLObjectElement::form_associated_element_attribute_changed(FlyString const& name, Optional const&, Optional const&) { // https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element // Whenever one of the following conditions occur: diff --git a/Libraries/LibWeb/HTML/HTMLObjectElement.h b/Libraries/LibWeb/HTML/HTMLObjectElement.h index acbe7c87777..94a1c70ab99 100644 --- a/Libraries/LibWeb/HTML/HTMLObjectElement.h +++ b/Libraries/LibWeb/HTML/HTMLObjectElement.h @@ -33,7 +33,7 @@ class HTMLObjectElement final public: virtual ~HTMLObjectElement() override; - virtual void form_associated_element_attribute_changed(FlyString const& name, Optional const& value) override; + virtual void form_associated_element_attribute_changed(FlyString const& name, Optional const& value, Optional const& namespace_) override; virtual void form_associated_element_was_removed(DOM::Node*) override; String data() const; diff --git a/Libraries/LibWeb/HTML/HTMLOutputElement.cpp b/Libraries/LibWeb/HTML/HTMLOutputElement.cpp index 12fc2e06eeb..dae7cfa3cb7 100644 --- a/Libraries/LibWeb/HTML/HTMLOutputElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLOutputElement.cpp @@ -32,7 +32,7 @@ void HTMLOutputElement::visit_edges(Cell::Visitor& visitor) visitor.visit(m_html_for); } -void HTMLOutputElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value) +void HTMLOutputElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value, Optional const&) { if (name == HTML::AttributeNames::for_) { if (m_html_for) diff --git a/Libraries/LibWeb/HTML/HTMLOutputElement.h b/Libraries/LibWeb/HTML/HTMLOutputElement.h index 849e3f985f0..6c066dd78e1 100644 --- a/Libraries/LibWeb/HTML/HTMLOutputElement.h +++ b/Libraries/LibWeb/HTML/HTMLOutputElement.h @@ -63,7 +63,7 @@ private: virtual void initialize(JS::Realm&) override; virtual void visit_edges(Cell::Visitor& visitor) override; - virtual void form_associated_element_attribute_changed(FlyString const& name, Optional const& value) override; + virtual void form_associated_element_attribute_changed(FlyString const& name, Optional const& value, Optional const&) override; GC::Ptr m_html_for; diff --git a/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp b/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp index 89f2bdac319..bd9d264af27 100644 --- a/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp @@ -439,7 +439,7 @@ void HTMLTextAreaElement::children_changed() } } -void HTMLTextAreaElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value) +void HTMLTextAreaElement::form_associated_element_attribute_changed(FlyString const& name, Optional const& value, Optional const&) { if (name == HTML::AttributeNames::placeholder) { if (m_placeholder_text_node) diff --git a/Libraries/LibWeb/HTML/HTMLTextAreaElement.h b/Libraries/LibWeb/HTML/HTMLTextAreaElement.h index 3053f63d2da..92a7291338a 100644 --- a/Libraries/LibWeb/HTML/HTMLTextAreaElement.h +++ b/Libraries/LibWeb/HTML/HTMLTextAreaElement.h @@ -68,7 +68,7 @@ public: virtual void form_associated_element_was_inserted() override; virtual void form_associated_element_was_removed(DOM::Node*) override; - virtual void form_associated_element_attribute_changed(FlyString const&, Optional const&) override; + virtual void form_associated_element_attribute_changed(FlyString const&, Optional const&, Optional const&) override; virtual void children_changed() override;