summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/IndexedDatabaseRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/storage/IndexedDatabaseRequest.cpp')
-rw-r--r--WebCore/storage/IndexedDatabaseRequest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/WebCore/storage/IndexedDatabaseRequest.cpp b/WebCore/storage/IndexedDatabaseRequest.cpp
index a25fb2b..45ae1bd 100644
--- a/WebCore/storage/IndexedDatabaseRequest.cpp
+++ b/WebCore/storage/IndexedDatabaseRequest.cpp
@@ -44,10 +44,8 @@ namespace WebCore {
IndexedDatabaseRequest::IndexedDatabaseRequest(IndexedDatabase* indexedDatabase)
: m_indexedDatabase(indexedDatabase)
{
- m_this = IDBAny::create();
// We pass a reference to this object before it can be adopted.
relaxAdoptionRequirement();
- m_this->set(this);
}
IndexedDatabaseRequest::~IndexedDatabaseRequest()
@@ -65,7 +63,7 @@ PassRefPtr<IDBRequest> IndexedDatabaseRequest::open(ScriptExecutionContext* cont
if (!document->frame())
return 0;
- RefPtr<IDBRequest> request = IDBRequest::create(document, m_this);
+ RefPtr<IDBRequest> request = IDBRequest::create(document, IDBAny::create(this));
m_indexedDatabase->open(name, description, request, document->securityOrigin(), document->frame());
return request;
}