Index: Source/modules/indexeddb/IDBDatabase.cpp |
diff --git a/Source/modules/indexeddb/IDBDatabase.cpp b/Source/modules/indexeddb/IDBDatabase.cpp |
index d7a9084632969c4735a2f00f877de65d41d87eb4..7fad2c8a740dd4699a7a5272b1a0e7fd85882f9c 100644 |
--- a/Source/modules/indexeddb/IDBDatabase.cpp |
+++ b/Source/modules/indexeddb/IDBDatabase.cpp |
@@ -29,6 +29,8 @@ |
#include "bindings/v8/ExceptionState.h" |
#include "bindings/v8/ExceptionStatePlaceholder.h" |
#include "bindings/v8/IDBBindingUtilities.h" |
+#include "bindings/v8/Nullable.h" |
+#include "bindings/v8/SerializedScriptValue.h" |
#include "core/dom/ExecutionContext.h" |
#include "core/events/EventQueue.h" |
#include "core/inspector/ScriptCallStack.h" |
@@ -360,8 +362,8 @@ void IDBDatabase::onVersionChange(int64_t oldVersion, int64_t newVersion) |
if (m_closePending) |
return; |
- RefPtr<IDBAny> newVersionAny = newVersion == IDBDatabaseMetadata::NoIntVersion ? IDBAny::createNull() : IDBAny::create(newVersion); |
- enqueueEvent(IDBVersionChangeEvent::create(IDBAny::create(oldVersion), newVersionAny.release(), EventTypeNames::versionchange)); |
+ Nullable<unsigned long long> newVersionNullable = (newVersion == IDBDatabaseMetadata::NoIntVersion) ? Nullable<unsigned long long>() : Nullable<unsigned long long>(newVersion); |
+ enqueueEvent(IDBVersionChangeEvent::create(EventTypeNames::versionchange, oldVersion, newVersionNullable)); |
} |
void IDBDatabase::enqueueEvent(PassRefPtr<Event> event) |