From b73bd76571a5be1d41eb667193cab2972604f58c Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 25 Jul 2024 14:16:37 -0600 Subject: [PATCH] LibWeb: Visit the DataTransfer member of DragEvent --- Userland/Libraries/LibWeb/HTML/DragEvent.cpp | 6 ++++++ Userland/Libraries/LibWeb/HTML/DragEvent.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/DragEvent.cpp b/Userland/Libraries/LibWeb/HTML/DragEvent.cpp index da89bd2a8c9..47d1ec087f9 100644 --- a/Userland/Libraries/LibWeb/HTML/DragEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/DragEvent.cpp @@ -36,4 +36,10 @@ void DragEvent::initialize(JS::Realm& realm) WEB_SET_PROTOTYPE_FOR_INTERFACE(DragEvent); } +void DragEvent::visit_edges(JS::Cell::Visitor& visitor) +{ + Base::visit_edges(visitor); + visitor.visit(m_data_transfer); +} + } diff --git a/Userland/Libraries/LibWeb/HTML/DragEvent.h b/Userland/Libraries/LibWeb/HTML/DragEvent.h index a4522ff0eaa..ec48373cdff 100644 --- a/Userland/Libraries/LibWeb/HTML/DragEvent.h +++ b/Userland/Libraries/LibWeb/HTML/DragEvent.h @@ -34,6 +34,7 @@ private: DragEvent(JS::Realm&, FlyString const& event_name, DragEventInit const& event_init, double page_x, double page_y, double offset_x, double offset_y); virtual void initialize(JS::Realm&) override; + virtual void visit_edges(JS::Cell::Visitor&) override; JS::GCPtr m_data_transfer; };