mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-08 04:02:52 +00:00
LibWeb: Implement the DataTransferItemList indexed getter
This commit is contained in:
parent
843f8f04a5
commit
ceb9e30d42
Notes:
github-actions[bot]
2024-08-22 12:22:27 +00:00
Author: https://github.com/trflynn89
Commit: ceb9e30d42
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1158
Reviewed-by: https://github.com/shannonbooth
6 changed files with 36 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue