2010-08-31 Jeremy Orlow <jorlow@chromium.org>
Reviewed by Steve Block.
IDBCursor.continue() should reuse the .openCursor's IDBRequest object
https://bugs.webkit.org/show_bug.cgi?id=44953
* storage/indexeddb/objectstore-cursor.html:
2010-08-31 Jeremy Orlow <jorlow@chromium.org>
Reviewed by Steve Block.
IDBCursor.continue() should reuse the .openCursor's IDBRequest object
https://bugs.webkit.org/show_bug.cgi?id=44953
This is to match the spec. This requires a modification to IDBRequest so
that multiple events can be queued up.
Note that the initial state for IDBRequest was removed from the spec.
Test: modified existing test to verify new behavior.
* storage/IDBAny.cpp:
(WebCore::IDBAny::createInvalid):
(WebCore::IDBAny::createNull):
(WebCore::IDBAny::setNull):
* storage/IDBAny.h:
(WebCore::IDBAny::create):
* storage/IDBCursor.cpp:
(WebCore::IDBCursor::IDBCursor):
(WebCore::IDBCursor::continueFunction):
* storage/IDBCursor.h:
(WebCore::IDBCursor::create):
* storage/IDBCursor.idl:
* storage/IDBRequest.cpp:
(WebCore::IDBRequest::IDBRequest):
(WebCore::IDBRequest::~IDBRequest):
(WebCore::IDBRequest::resetReadyState):
(WebCore::IDBRequest::onError):
(WebCore::IDBRequest::onSuccess):
(WebCore::IDBRequest::abort):
(WebCore::IDBRequest::timerFired):
(WebCore::IDBRequest::scheduleEvent):
* storage/IDBRequest.h:
* storage/IDBRequest.idl:
2010-08-31 Jeremy Orlow <jorlow@chromium.org>
Reviewed by Steve Block.
IDBCursor.continue() should reuse the .openCursor's IDBRequest object
https://bugs.webkit.org/show_bug.cgi?id=44953
* src/WebIDBCallbacksImpl.cpp:
(WebCore::WebIDBCallbacksImpl::onError):
(WebCore::WebIDBCallbacksImpl::onSuccess):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed