mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Implement the DataTransferItemList indexed getter
This commit is contained in:
committed by
Andreas Kling
parent
843f8f04a5
commit
ceb9e30d42
@@ -260,6 +260,12 @@ bool DataTransfer::contains_item_with_type(DragDataStoreItem::Kind kind, String
|
||||
return false;
|
||||
}
|
||||
|
||||
JS::NonnullGCPtr<DataTransferItem> DataTransfer::item(size_t index) const
|
||||
{
|
||||
VERIFY(index < m_item_list.size());
|
||||
return m_item_list[index];
|
||||
}
|
||||
|
||||
size_t DataTransfer::length() const
|
||||
{
|
||||
if (m_associated_drag_data_store)
|
||||
|
||||
Reference in New Issue
Block a user