LibWeb: Visit the DataTransfer member of DragEvent

This commit is contained in:
Andrew Kaster 2024-07-25 14:16:37 -06:00
parent f314f58fca
commit b73bd76571
Notes: github-actions[bot] 2024-07-26 00:37:06 +00:00
2 changed files with 7 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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<DataTransfer> m_data_transfer;
};