mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Visit the DataTransfer member of DragEvent
This commit is contained in:
parent
f314f58fca
commit
b73bd76571
Notes:
github-actions[bot]
2024-07-26 00:37:06 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/b73bd76571a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/837
2 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue