mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 15:44:45 +00:00
LibWeb/HTML: Store the type of the storage object
This will be needed by the storage broadcast implementation to perform different steps if the object is for session storage.
This commit is contained in:
committed by
Andreas Kling
parent
f3ecd23a21
commit
bbf4739c8e
@@ -15,13 +15,14 @@ namespace Web::HTML {
|
||||
|
||||
GC_DEFINE_ALLOCATOR(Storage);
|
||||
|
||||
GC::Ref<Storage> Storage::create(JS::Realm& realm, u64 quota_bytes)
|
||||
GC::Ref<Storage> Storage::create(JS::Realm& realm, Type type, u64 quota_bytes)
|
||||
{
|
||||
return realm.create<Storage>(realm, quota_bytes);
|
||||
return realm.create<Storage>(realm, type, quota_bytes);
|
||||
}
|
||||
|
||||
Storage::Storage(JS::Realm& realm, u64 quota_bytes)
|
||||
Storage::Storage(JS::Realm& realm, Type type, u64 quota_bytes)
|
||||
: Bindings::PlatformObject(realm)
|
||||
, m_type(type)
|
||||
, m_quota_bytes(quota_bytes)
|
||||
{
|
||||
m_legacy_platform_object_flags = LegacyPlatformObjectFlags {
|
||||
|
||||
Reference in New Issue
Block a user