summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/IDBDatabaseBackendImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/storage/IDBDatabaseBackendImpl.cpp')
-rw-r--r--WebCore/storage/IDBDatabaseBackendImpl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/WebCore/storage/IDBDatabaseBackendImpl.cpp b/WebCore/storage/IDBDatabaseBackendImpl.cpp
index 021f70a..b8fe9b5 100644
--- a/WebCore/storage/IDBDatabaseBackendImpl.cpp
+++ b/WebCore/storage/IDBDatabaseBackendImpl.cpp
@@ -148,11 +148,12 @@ void IDBDatabaseBackendImpl::createObjectStore(const String& name, const String&
callbacks->onSuccess(objectStore.get());
}
+// FIXME: Do not expose this method via IDL.
PassRefPtr<IDBObjectStoreBackendInterface> IDBDatabaseBackendImpl::objectStore(const String& name, unsigned short mode)
{
- // FIXME: If no transaction is running, this should implicitly start one.
- ASSERT_UNUSED(mode, !mode); // FIXME: Handle non-standard modes.
- return m_objectStores.get(name);
+ ASSERT_UNUSED(mode, !mode); // FIXME: Remove the mode parameter. Transactions have modes, not object stores.
+ RefPtr<IDBObjectStoreBackendInterface> objectStore = m_objectStores.get(name);
+ return objectStore.release();
}
static void doDelete(SQLiteDatabase& db, const char* sql, int64_t id)