mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Include namespace parameter in associated_attribute_changed()
This commit is contained in:
parent
5947c37637
commit
40cb36607c
Notes:
github-actions[bot]
2024-12-14 20:12:28 +00:00
Author: https://github.com/tcl3
Commit: 40cb36607c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2891
11 changed files with 12 additions and 12 deletions
|
@ -49,7 +49,7 @@ private:
|
||||||
{ \
|
{ \
|
||||||
ElementBaseClass::attribute_changed(name, old_value, value, namespace_); \
|
ElementBaseClass::attribute_changed(name, old_value, value, namespace_); \
|
||||||
form_node_attribute_changed(name, value); \
|
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
|
// 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_inserted() { }
|
||||||
virtual void form_associated_element_was_removed(DOM::Node*) { }
|
virtual void form_associated_element_was_removed(DOM::Node*) { }
|
||||||
virtual void form_associated_element_attribute_changed(FlyString const&, Optional<String> const&) { }
|
virtual void form_associated_element_attribute_changed(FlyString const&, Optional<String> const&, Optional<FlyString> const&) { }
|
||||||
|
|
||||||
void form_node_was_inserted();
|
void form_node_was_inserted();
|
||||||
void form_node_was_removed();
|
void form_node_was_removed();
|
||||||
|
|
|
@ -113,7 +113,7 @@ void HTMLImageElement::apply_presentational_hints(CSS::StyleProperties& style) c
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLImageElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value)
|
void HTMLImageElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value, Optional<FlyString> const&)
|
||||||
{
|
{
|
||||||
if (name == HTML::AttributeNames::crossorigin) {
|
if (name == HTML::AttributeNames::crossorigin) {
|
||||||
m_cors_setting = cors_setting_attribute_from_keyword(value);
|
m_cors_setting = cors_setting_attribute_from_keyword(value);
|
||||||
|
|
|
@ -38,7 +38,7 @@ class HTMLImageElement final
|
||||||
public:
|
public:
|
||||||
virtual ~HTMLImageElement() override;
|
virtual ~HTMLImageElement() override;
|
||||||
|
|
||||||
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value, Optional<FlyString> const&) override;
|
||||||
|
|
||||||
Optional<String> alternative_text() const override
|
Optional<String> alternative_text() const override
|
||||||
{
|
{
|
||||||
|
|
|
@ -1195,7 +1195,7 @@ void HTMLInputElement::did_lose_focus()
|
||||||
commit_pending_changes();
|
commit_pending_changes();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLInputElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value)
|
void HTMLInputElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value, Optional<FlyString> const&)
|
||||||
{
|
{
|
||||||
if (name == HTML::AttributeNames::checked) {
|
if (name == HTML::AttributeNames::checked) {
|
||||||
if (!value.has_value()) {
|
if (!value.has_value()) {
|
||||||
|
|
|
@ -185,7 +185,7 @@ public:
|
||||||
|
|
||||||
virtual void form_associated_element_was_inserted() override;
|
virtual void form_associated_element_was_inserted() override;
|
||||||
virtual void form_associated_element_was_removed(DOM::Node*) override;
|
virtual void form_associated_element_was_removed(DOM::Node*) override;
|
||||||
virtual void form_associated_element_attribute_changed(FlyString const&, Optional<String> const&) override;
|
virtual void form_associated_element_attribute_changed(FlyString const&, Optional<String> const&, Optional<FlyString> const&) override;
|
||||||
|
|
||||||
virtual WebIDL::ExceptionOr<void> cloned(Node&, bool) override;
|
virtual WebIDL::ExceptionOr<void> cloned(Node&, bool) override;
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ void HTMLObjectElement::visit_edges(Cell::Visitor& visitor)
|
||||||
visitor.visit(m_document_observer);
|
visitor.visit(m_document_observer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLObjectElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const&)
|
void HTMLObjectElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const&, Optional<FlyString> const&)
|
||||||
{
|
{
|
||||||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element
|
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-object-element
|
||||||
// Whenever one of the following conditions occur:
|
// Whenever one of the following conditions occur:
|
||||||
|
|
|
@ -33,7 +33,7 @@ class HTMLObjectElement final
|
||||||
public:
|
public:
|
||||||
virtual ~HTMLObjectElement() override;
|
virtual ~HTMLObjectElement() override;
|
||||||
|
|
||||||
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value, Optional<FlyString> const& namespace_) override;
|
||||||
virtual void form_associated_element_was_removed(DOM::Node*) override;
|
virtual void form_associated_element_was_removed(DOM::Node*) override;
|
||||||
|
|
||||||
String data() const;
|
String data() const;
|
||||||
|
|
|
@ -32,7 +32,7 @@ void HTMLOutputElement::visit_edges(Cell::Visitor& visitor)
|
||||||
visitor.visit(m_html_for);
|
visitor.visit(m_html_for);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLOutputElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value)
|
void HTMLOutputElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value, Optional<FlyString> const&)
|
||||||
{
|
{
|
||||||
if (name == HTML::AttributeNames::for_) {
|
if (name == HTML::AttributeNames::for_) {
|
||||||
if (m_html_for)
|
if (m_html_for)
|
||||||
|
|
|
@ -63,7 +63,7 @@ private:
|
||||||
virtual void initialize(JS::Realm&) override;
|
virtual void initialize(JS::Realm&) override;
|
||||||
virtual void visit_edges(Cell::Visitor& visitor) override;
|
virtual void visit_edges(Cell::Visitor& visitor) override;
|
||||||
|
|
||||||
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value, Optional<FlyString> const&) override;
|
||||||
|
|
||||||
GC::Ptr<DOM::DOMTokenList> m_html_for;
|
GC::Ptr<DOM::DOMTokenList> m_html_for;
|
||||||
|
|
||||||
|
|
|
@ -439,7 +439,7 @@ void HTMLTextAreaElement::children_changed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLTextAreaElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value)
|
void HTMLTextAreaElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value, Optional<FlyString> const&)
|
||||||
{
|
{
|
||||||
if (name == HTML::AttributeNames::placeholder) {
|
if (name == HTML::AttributeNames::placeholder) {
|
||||||
if (m_placeholder_text_node)
|
if (m_placeholder_text_node)
|
||||||
|
|
|
@ -68,7 +68,7 @@ public:
|
||||||
|
|
||||||
virtual void form_associated_element_was_inserted() override;
|
virtual void form_associated_element_was_inserted() override;
|
||||||
virtual void form_associated_element_was_removed(DOM::Node*) override;
|
virtual void form_associated_element_was_removed(DOM::Node*) override;
|
||||||
virtual void form_associated_element_attribute_changed(FlyString const&, Optional<String> const&) override;
|
virtual void form_associated_element_attribute_changed(FlyString const&, Optional<String> const&, Optional<FlyString> const&) override;
|
||||||
|
|
||||||
virtual void children_changed() override;
|
virtual void children_changed() override;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue