Get IDBTransactionBackendLevelDBOperations *almost* ready to go cross platform This is part of https://bugs.webkit.org/show_bug.cgi?id=123449 - IDBTransactionBackend should be cross platform
Created attachment 215399 [details] Patch v1
Attachment 215399 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/GNUmakefile.list.am', u'Source/WebCore/Modules/indexeddb/IDBCallbacks.h', u'Source/WebCore/Modules/indexeddb/IDBCursorBackendInterface.h', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h', u'Source/WebCore/Modules/indexeddb/IDBDatabaseBackendInterface.h', u'Source/WebCore/Modules/indexeddb/IDBOperation.h', u'Source/WebCore/Modules/indexeddb/IDBPendingOpenCall.h', u'Source/WebCore/Modules/indexeddb/IDBRequest.h', u'Source/WebCore/Modules/indexeddb/IDBTransactionBackendInterface.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBCursorBackendLevelDB.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionBackendLevelDB.h', u'Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.cpp', u'Source/WebCore/Modules/indexeddb/leveldb/IDBTransactionBackendLevelDBOperations.h', u'Source/WebCore/WebCore.xcodeproj/project.pbxproj']" exit_code: 1 Source/WebCore/Modules/indexeddb/IDBDatabaseBackendInterface.h:111: The parameter name "pendingOpenCall" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to comment #2) > Attachment 215399 [details] did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendInterface.h:111: The parameter name "pendingOpenCall" adds no information, so it should be removed. [readability/parameter_name] [5] > Total errors found: 1 in 18 files Fixed locally.
Ugh, WK2 won't build, forgot a WebCore project file change to export a new header.
Comment on attachment 215399 [details] Patch v1 Attachment 215399 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/17078133
Comment on attachment 215399 [details] Patch v1 Attachment 215399 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/17138140
Created attachment 215402 [details] Patch v2
Comment on attachment 215402 [details] Patch v2 Attachment 215402 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/17108145
Comment on attachment 215402 [details] Patch v2 Attachment 215402 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/17148124
Ummm... thanks EFL? Last 500 characters of output: reference to `vtable for WebCore::IDBTransactionBackendInterface' ../../lib/libwebcore_efl.a(IDBTransactionBackendLevelDB.cpp.o):(.data.rel.ro._ZTIN7WebCore28IDBTransactionBackendLevelDBE[_ZTIN7WebCore28IDBTransactionBackendLevelDBE]+0x10): undefined reference to `typeinfo for WebCore::IDBTransactionBackendInterface' Didn't see this on the Mac with the LevelDB build enabled...
Might have been my mistake. Uploading new patch to check.
Created attachment 215410 [details] Patch v3 - Make a method pure virtual that should already have been.
Comment on attachment 215410 [details] Patch v3 - Make a method pure virtual that should already have been. View in context: https://bugs.webkit.org/attachment.cgi?id=215410&action=review r=me. > Source/WebCore/ChangeLog:11 > + - Reworking the LeveDB Operations to handle the base class IDBTransactionBackendInterface Typo, LevelDB > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:423 > + Deque<OwnPtr<IDBPendingOpenCall>> pendingOpenCalls; > m_pendingOpenCalls.swap(pendingOpenCalls); This would look slightly more straightforward like so: Deque<OwnPtr<IDBPendingOpenCall>> pendingOpenCalls = std::move(m_pendingOpenCalls); Hm, I wonder if we couldn't even do this: auto pendingOpenCalls = std::move(m_pendingOpenCalls);
(In reply to comment #13) > (From update of attachment 215410 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=215410&action=review > > r=me. > > > Source/WebCore/ChangeLog:11 > > + - Reworking the LeveDB Operations to handle the base class IDBTransactionBackendInterface > > Typo, LevelDB > > > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:423 > > + Deque<OwnPtr<IDBPendingOpenCall>> pendingOpenCalls; > > m_pendingOpenCalls.swap(pendingOpenCalls); > > This would look slightly more straightforward like so: > Deque<OwnPtr<IDBPendingOpenCall>> pendingOpenCalls = std::move(m_pendingOpenCalls); > > Hm, I wonder if we couldn't even do this: > auto pendingOpenCalls = std::move(m_pendingOpenCalls); I'll skip on trying to make either of these changes, as both result in: /Volumes/Data/build/Debug/usr/local/include/wtf/Vector.h:141:32: Call to implicitly-deleted copy constructor of 'WTF::OwnPtr<WebCore::IDBPendingOpenCall>'
http://trac.webkit.org/changeset/158217
and http://trac.webkit.org/changeset/158218 also