Skip to content
  • commit-queue@webkit.org's avatar
    IndexedDB: Implement custom bindings for parsing options · 41e22baa
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=96614
    
    Patch by Michael Pruett <michael@68k.org> on 2012-12-18
    Reviewed by Darin Adler.
    
    Parsing the options dictionary in IDBDatabase.createObjectStore()
    and IDBObjectStore.createIndex() requires custom bindings in JSC.
    
    Tests: storage/indexeddb/*
    
    * GNUmakefile.list.am:
    * Modules/indexeddb/IDBDatabase.cpp:
    (WebCore::IDBDatabase::createObjectStore):
    (WebCore):
    * Modules/indexeddb/IDBDatabase.h:
    (IDBDatabase):
    * Modules/indexeddb/IDBDatabase.idl:
    * Modules/indexeddb/IDBObjectStore.cpp:
    (WebCore::IDBObjectStore::createIndex):
    (WebCore):
    * Modules/indexeddb/IDBObjectStore.h:
    (IDBObjectStore):
    * Modules/indexeddb/IDBObjectStore.idl:
    * UseJSC.cmake:
    * bindings/js/IDBBindingUtilities.cpp:
    (WebCore::idbKeyPathFromValue): Added utility function for converting a JSValue to an IDBKeyPath.
    (WebCore):
    * bindings/js/IDBBindingUtilities.h:
    (WebCore):
    * bindings/js/JSIDBDatabaseCustom.cpp: Added.
    (WebCore):
    (WebCore::JSIDBDatabase::createObjectStore):
    * bindings/js/JSIDBObjectStoreCustom.cpp: Added.
    (WebCore):
    (WebCore::JSIDBObjectStore::createIndex):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    41e22baa