Skip to content

Commit

Permalink
LibWeb: Add a few missing visits to m_rel_list members
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 authored and awesomekling committed May 19, 2024
1 parent 3ccbc83 commit 74aeb57
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class HTMLAnchorElement final
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;
Expand Down
6 changes: 6 additions & 0 deletions Userland/Libraries/LibWeb/HTML/HTMLAreaElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions Userland/Libraries/LibWeb/HTML/HTMLAreaElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class HTMLAreaElement final
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;
Expand Down
1 change: 1 addition & 0 deletions Userland/Libraries/LibWeb/HTML/HTMLFormElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

}

0 comments on commit 74aeb57

Please sign in to comment.