LibWeb: Add missing visits in ResizeObserverEntry

Both m_device_pixel_content_box_size and m_content_rect were missing.
This commit is contained in:
Andreas Kling 2024-04-01 10:37:16 +02:00
parent c409a7cdfd
commit 08e62f883d
Notes: sideshowbarker 2024-07-16 22:22:13 +09:00

View file

@ -72,6 +72,9 @@ void ResizeObserverEntry::visit_edges(JS::Cell::Visitor& visitor)
visitor.visit(size); visitor.visit(size);
for (auto& size : m_border_box_size) for (auto& size : m_border_box_size)
visitor.visit(size); visitor.visit(size);
for (auto& size : m_device_pixel_content_box_size)
visitor.visit(size);
visitor.visit(m_content_rect);
} }
static JS::NonnullGCPtr<JS::Object> to_js_array(JS::Realm& realm, Vector<JS::NonnullGCPtr<ResizeObserverSize>> const& sizes) static JS::NonnullGCPtr<JS::Object> to_js_array(JS::Realm& realm, Vector<JS::NonnullGCPtr<ResizeObserverSize>> const& sizes)