mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWeb/IDB: Implement IDBCursor::update
This commit is contained in:
parent
3154ac8988
commit
cf84a98bab
Notes:
github-actions[bot]
2025-05-13 16:49:59 +00:00
Author: https://github.com/stelar7
Commit: cf84a98bab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4720
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/shannonbooth
3 changed files with 84 additions and 1 deletions
|
@ -49,6 +49,8 @@ public:
|
|||
WebIDL::ExceptionOr<void> continue_(JS::Value);
|
||||
WebIDL::ExceptionOr<void> continue_primary_key(JS::Value, JS::Value);
|
||||
|
||||
WebIDL::ExceptionOr<GC::Ref<IDBRequest>> update(JS::Value);
|
||||
|
||||
[[nodiscard]] JS::Value value() { return m_value.value_or(JS::js_undefined()); }
|
||||
[[nodiscard]] GC::Ref<IDBKeyRange> range() { return m_range; }
|
||||
[[nodiscard]] GC::Ptr<Key> position() { return m_position; }
|
||||
|
@ -58,6 +60,7 @@ public:
|
|||
[[nodiscard]] GC::Ref<IDBTransaction> transaction();
|
||||
[[nodiscard]] CursorSource internal_source();
|
||||
[[nodiscard]] GC::Ref<Key> effective_key() const;
|
||||
[[nodiscard]] GC::Ref<ObjectStore> effective_object_store() const;
|
||||
|
||||
void set_request(GC::Ptr<IDBRequest> request) { m_request = request; }
|
||||
void set_position(GC::Ptr<Key> position) { m_position = position; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue