mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Move IDBDatabase::close out of line
This commit is contained in:
committed by
Jelle Raaijmakers
parent
47b8a015a7
commit
596f1d8426
Notes:
github-actions[bot]
2025-01-14 22:47:34 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/596f1d8426a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3190 Reviewed-by: https://github.com/Lubrsi Reviewed-by: https://github.com/gmta ✅
@@ -8,6 +8,7 @@
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/HTML/EventNames.h>
|
||||
#include <LibWeb/IndexedDB/IDBDatabase.h>
|
||||
#include <LibWeb/IndexedDB/Internal/Algorithms.h>
|
||||
|
||||
namespace Web::IndexedDB {
|
||||
|
||||
@@ -82,4 +83,11 @@ WebIDL::CallbackType* IDBDatabase::onversionchange()
|
||||
return event_handler_attribute(HTML::EventNames::versionchange);
|
||||
}
|
||||
|
||||
// https://w3c.github.io/IndexedDB/#dom-idbdatabase-close
|
||||
void IDBDatabase::close()
|
||||
{
|
||||
// 1. Run close a database connection with this connection.
|
||||
close_a_database_connection(*this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user