From 6231aee7610eeda48b5653bf5c2de580a121844c Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Mon, 1 Jan 2024 16:31:00 +0000 Subject: [PATCH] LibWeb: Add missing DOMRectList::visit_edges --- Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp | 7 +++++++ Userland/Libraries/LibWeb/Geometry/DOMRectList.h | 1 + 2 files changed, 8 insertions(+) diff --git a/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp b/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp index 5570a0eab31..f7b670db428 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp +++ b/Userland/Libraries/LibWeb/Geometry/DOMRectList.cpp @@ -36,6 +36,13 @@ void DOMRectList::initialize(JS::Realm& realm) set_prototype(&Bindings::ensure_web_prototype(realm, "DOMRectList"_fly_string)); } +void DOMRectList::visit_edges(Cell::Visitor& visitor) +{ + Base::visit_edges(visitor); + for (auto& rect : m_rects) + visitor.visit(rect); +} + // https://drafts.fxtf.org/geometry-1/#dom-domrectlist-length u32 DOMRectList::length() const { diff --git a/Userland/Libraries/LibWeb/Geometry/DOMRectList.h b/Userland/Libraries/LibWeb/Geometry/DOMRectList.h index 5efd84718e0..32f0f0b0863 100644 --- a/Userland/Libraries/LibWeb/Geometry/DOMRectList.h +++ b/Userland/Libraries/LibWeb/Geometry/DOMRectList.h @@ -33,6 +33,7 @@ private: DOMRectList(JS::Realm&, Vector>); virtual void initialize(JS::Realm&) override; + virtual void visit_edges(Cell::Visitor&) override; // ^Bindings::LegacyPlatformObject virtual bool supports_indexed_properties() const override { return true; }