mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Implement the DataTransferItem kind and type attributes
This commit is contained in:
parent
ceb9e30d42
commit
001d8384e5
Notes:
github-actions[bot]
2024-08-22 12:22:21 +00:00
Author: https://github.com/trflynn89
Commit: 001d8384e5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1158
Reviewed-by: https://github.com/shannonbooth
7 changed files with 65 additions and 6 deletions
|
@ -266,6 +266,14 @@ JS::NonnullGCPtr<DataTransferItem> DataTransfer::item(size_t index) const
|
|||
return m_item_list[index];
|
||||
}
|
||||
|
||||
DragDataStoreItem const& DataTransfer::drag_data(size_t index) const
|
||||
{
|
||||
VERIFY(m_associated_drag_data_store);
|
||||
VERIFY(index < m_item_list.size());
|
||||
|
||||
return m_associated_drag_data_store->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