mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibWeb: Add a few missing visits to m_rel_list members
This commit is contained in:
parent
3ccbc83168
commit
74aeb57631
Notes:
sideshowbarker
2024-07-17 06:24:08 +09:00
Author: https://github.com/mattco98
Commit: 74aeb57631
Pull-request: https://github.com/SerenityOS/serenity/pull/24350
Reviewed-by: https://github.com/ADKaster ✅
6 changed files with 16 additions and 0 deletions
|
@ -34,6 +34,12 @@ void HTMLAnchorElement::initialize(JS::Realm& realm)
|
|||
WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLAnchorElement);
|
||||
}
|
||||
|
||||
void HTMLAnchorElement::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_rel_list);
|
||||
}
|
||||
|
||||
void HTMLAnchorElement::attribute_changed(FlyString const& name, Optional<String> const& value)
|
||||
{
|
||||
HTMLElement::attribute_changed(name, value);
|
||||
|
|
|
@ -42,6 +42,7 @@ private:
|
|||
HTMLAnchorElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
virtual bool has_activation_behavior() const override;
|
||||
virtual void activation_behavior(Web::DOM::Event const&) override;
|
||||
|
|
|
@ -27,6 +27,12 @@ void HTMLAreaElement::initialize(JS::Realm& realm)
|
|||
WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLAreaElement);
|
||||
}
|
||||
|
||||
void HTMLAreaElement::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_rel_list);
|
||||
}
|
||||
|
||||
void HTMLAreaElement::attribute_changed(FlyString const& name, Optional<String> const& value)
|
||||
{
|
||||
HTMLElement::attribute_changed(name, value);
|
||||
|
|
|
@ -26,6 +26,7 @@ private:
|
|||
HTMLAreaElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
// ^DOM::Element
|
||||
virtual void attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
||||
|
|
|
@ -63,6 +63,7 @@ void HTMLFormElement::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_elements);
|
||||
visitor.visit(m_associated_elements);
|
||||
visitor.visit(m_planned_navigation);
|
||||
visitor.visit(m_rel_list);
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#implicit-submission
|
||||
|
|
|
@ -564,6 +564,7 @@ void HTMLLinkElement::visit_edges(Cell::Visitor& visitor)
|
|||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_loaded_style_sheet);
|
||||
visitor.visit(m_rel_list);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue