mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibWeb: Implement the DataTransferItemList length attribute
This commit is contained in:
committed by
Andreas Kling
parent
74d9cfbf2a
commit
843f8f04a5
@@ -260,6 +260,13 @@ bool DataTransfer::contains_item_with_type(DragDataStoreItem::Kind kind, String
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t DataTransfer::length() const
|
||||
{
|
||||
if (m_associated_drag_data_store)
|
||||
return m_associated_drag_data_store->size();
|
||||
return 0;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dnd.html#concept-datatransfer-types
|
||||
void DataTransfer::update_data_transfer_types_list()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user