[webkit-changes] [WebKit/WebKit] 2c844d: Use std::span more in IndexedDB code

Chris Dumez noreply at github.com
Thu Mar 21 07:39:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2c844da0386ff67d69fe0982a84ef6df8533571b
      https://github.com/WebKit/WebKit/commit/2c844da0386ff67d69fe0982a84ef6df8533571b
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-03-21 (Thu, 21 Mar 2024)

  Changed paths:
    M Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp
    M Source/WebCore/Modules/indexeddb/server/IDBSerialization.h
    M Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp
    M Source/WebCore/Modules/indexeddb/server/SQLiteIDBCursor.cpp
    M Source/WebCore/platform/KeyedCoding.h
    M Source/WebCore/platform/cf/KeyedDecoderCF.cpp
    M Source/WebCore/platform/cf/KeyedDecoderCF.h
    M Source/WebCore/platform/generic/KeyedDecoderGeneric.cpp
    M Source/WebCore/platform/generic/KeyedDecoderGeneric.h
    M Source/WebCore/platform/glib/KeyedDecoderGlib.cpp
    M Source/WebCore/platform/glib/KeyedDecoderGlib.h
    M Source/WebKit/Shared/PersistencyUtils.cpp
    M Tools/TestWebKitAPI/Tests/WebCore/KeyedCoding.cpp

  Log Message:
  -----------
  Use std::span more in IndexedDB code
https://bugs.webkit.org/show_bug.cgi?id=271362

Reviewed by Sihui Liu.

* Source/WebCore/Modules/indexeddb/server/IDBSerialization.cpp:
(WebCore::deserializeIDBKeyPath):
(WebCore::isLegacySerializedIDBKeyData):
(WebCore::readLittleEndian):
(WebCore::readDouble):
(WebCore::decodeKey):
(WebCore::deserializeIDBKeyData):
* Source/WebCore/Modules/indexeddb/server/IDBSerialization.h:
* Source/WebCore/Modules/indexeddb/server/SQLiteIDBBackingStore.cpp:
(WebCore::IDBServer::idbKeyCollate):
(WebCore::IDBServer::SQLiteIDBBackingStore::addExistingIndex):
(WebCore::IDBServer::SQLiteIDBBackingStore::extractExistingDatabaseInfo):
(WebCore::IDBServer::SQLiteIDBBackingStore::getOrEstablishDatabaseInfo):
(WebCore::IDBServer::SQLiteIDBBackingStore::getRecord):
(WebCore::IDBServer::SQLiteIDBBackingStore::getAllObjectStoreRecords):
(WebCore::IDBServer::SQLiteIDBBackingStore::uncheckedGetIndexRecordForOneKey):
* Source/WebCore/Modules/indexeddb/server/SQLiteIDBCursor.cpp:
(WebCore::IDBServer::SQLiteIDBCursor::internalFetchNextRecord):
* Source/WebCore/platform/KeyedCoding.h:
* Source/WebCore/platform/cf/KeyedDecoderCF.cpp:
(WebCore::KeyedDecoder::decoder):
(WebCore::KeyedDecoderCF::KeyedDecoderCF):
* Source/WebCore/platform/cf/KeyedDecoderCF.h:
* Source/WebCore/platform/generic/KeyedDecoderGeneric.cpp:
(WebCore::KeyedDecoder::decoder):
(WebCore::KeyedDecoderGeneric::KeyedDecoderGeneric):
* Source/WebCore/platform/generic/KeyedDecoderGeneric.h:
* Source/WebCore/platform/glib/KeyedDecoderGlib.cpp:
(WebCore::KeyedDecoder::decoder):
(WebCore::KeyedDecoderGlib::KeyedDecoderGlib):
* Source/WebCore/platform/glib/KeyedDecoderGlib.h:
* Source/WebKit/Shared/PersistencyUtils.cpp:
(WebKit::createForFile):
* Tools/TestWebKitAPI/Tests/WebCore/KeyedCoding.cpp:
(TestWebKitAPI::TEST):
(TestWebKitAPI::testSimpleValue):

Canonical link: https://commits.webkit.org/276459@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list