From 08e62f883dbe57a5fafc73f2622abd39fdf048e0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 Apr 2024 10:37:16 +0200 Subject: [PATCH] LibWeb: Add missing visits in ResizeObserverEntry Both m_device_pixel_content_box_size and m_content_rect were missing. --- .../Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp b/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp index 2c0a4a5640d..0a6ecaa1452 100644 --- a/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp +++ b/Userland/Libraries/LibWeb/ResizeObserver/ResizeObserverEntry.cpp @@ -72,6 +72,9 @@ void ResizeObserverEntry::visit_edges(JS::Cell::Visitor& visitor) visitor.visit(size); for (auto& size : m_border_box_size) visitor.visit(size); + for (auto& size : m_device_pixel_content_box_size) + visitor.visit(size); + visitor.visit(m_content_rect); } static JS::NonnullGCPtr to_js_array(JS::Realm& realm, Vector> const& sizes)