mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibWeb: Add IDBKeyRange
This commit is contained in:
parent
20a92a81c4
commit
48fae7b64f
Notes:
github-actions[bot]
2024-11-26 13:52:44 +00:00
Author: https://github.com/stelar7
Commit: 48fae7b64f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2236
Reviewed-by: https://github.com/gmta ✅
8 changed files with 80 additions and 0 deletions
33
Libraries/LibWeb/IndexedDB/IDBKeyRange.cpp
Normal file
33
Libraries/LibWeb/IndexedDB/IDBKeyRange.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/IDBKeyRangePrototype.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/IndexedDB/IDBKeyRange.h>
|
||||
|
||||
namespace Web::IndexedDB {
|
||||
|
||||
GC_DEFINE_ALLOCATOR(IDBKeyRange);
|
||||
|
||||
IDBKeyRange::~IDBKeyRange() = default;
|
||||
|
||||
IDBKeyRange::IDBKeyRange(JS::Realm& realm)
|
||||
: PlatformObject(realm)
|
||||
{
|
||||
}
|
||||
|
||||
GC::Ref<IDBKeyRange> IDBKeyRange::create(JS::Realm& realm)
|
||||
{
|
||||
return realm.create<IDBKeyRange>(realm);
|
||||
}
|
||||
|
||||
void IDBKeyRange::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(IDBKeyRange);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue