Skip to content
  • hans@chromium.org's avatar
    2011-02-16 Hans Wennborg <hans@chromium.org> · 4e595274
    hans@chromium.org authored
            Reviewed by Jeremy Orlow.
    
            IndexedDB: Inject auto increment keys via key path on insertion
            https://bugs.webkit.org/show_bug.cgi?id=54457
    
            Prepare to test injection of auto increment key. Keep it commented out
            until implemented Chromium-side.
    
            * storage/indexeddb/objectstore-autoincrement-expected.txt:
            * storage/indexeddb/objectstore-autoincrement.html:
    2011-02-16  Hans Wennborg  <hans@chromium.org>
    
            Reviewed by Jeremy Orlow.
    
            IndexedDB: Inject auto increment keys via key path on insertion
            https://bugs.webkit.org/show_bug.cgi?id=54457
    
            Inject auto increment keys via key path for object stores using key
            path and auto increment.
    
            * bindings/v8/IDBBindingUtilities.cpp:
            (WebCore::LocalContext::getNthValueOnKeyPath):
            (WebCore::createIDBKeyFromSerializedValueAndKeyPath):
            (WebCore::injectIDBKeyIntoSerializedValue):
            * bindings/v8/IDBBindingUtilities.h:
            * platform/chromium/PlatformBridge.h:
            * storage/IDBKeyPathBackendImpl.cpp:
            (IDBKeyPathBackendImpl::injectIDBKeyIntoSerializedValue):
            * storage/IDBKeyPathBackendImpl.h:
            * storage/IDBObjectStoreBackendImpl.cpp:
            (WebCore::injectKeyIntoKeyPath):
            (WebCore::IDBObjectStoreBackendImpl::selectKeyForPut):
            (WebCore::IDBObjectStoreBackendImpl::putInternal):
            * storage/IDBObjectStoreBackendImpl.h:
            * storage/chromium/IDBKeyPathBackendImpl.cpp:
            (WebCore::IDBKeyPathBackendImpl::injectIDBKeyIntoSerializedValue):
    2011-02-16  Hans Wennborg  <hans@chromium.org>
    
            Reviewed by Jeremy Orlow.
    
            IndexedDB: Inject auto increment keys via key path on insertion
            https://bugs.webkit.org/show_bug.cgi?id=54457
    
            Support for injecting keys into objects via key path.
    
            * public/WebIDBKey.h:
            * public/WebKitClient.h:
            (WebKit::WebKitClient::injectIDBKeyIntoSerializedValue):
            * src/PlatformBridge.cpp:
            (WebCore::PlatformBridge::injectIDBKeyIntoSerializedValue):
            * src/WebIDBKey.cpp:
            (WebKit::WebIDBKey::injectIDBKeyIntoSerializedValue):
            * tests/IDBBindingUtilitiesTest.cpp:
            (WebCore::injectKey):
            (WebCore::checkInjection):
            (WebCore::checkInjectionFails):
            (WebCore::TEST):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@78721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4e595274