mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:38:10 +00:00
LibWeb: Visit IntersectionObserverRegistration instead of using Handle
This fixes GC-leak caused by JS::Handle<IntersectionObserverver> preventing an element that owns the handle from being deallocated.
This commit is contained in:
parent
ac5c4705fd
commit
35623ad52e
3 changed files with 4 additions and 2 deletions
|
@ -128,6 +128,8 @@ void Element::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_custom_element_definition.ptr());
|
||||
for (auto& pseudo_element_layout_node : m_pseudo_element_nodes)
|
||||
visitor.visit(pseudo_element_layout_node);
|
||||
for (auto& registered_intersection_observers : m_registered_intersection_observers)
|
||||
visitor.visit(registered_intersection_observers.observer);
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-element-getattribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue