RESOLVED FIXED 224221
Shrink some IndexedDB-related classes
https://bugs.webkit.org/show_bug.cgi?id=224221
Summary Shrink some IndexedDB-related classes
Simon Fraser (smfr)
Reported 2021-04-05 21:00:25 PDT
Shrink some IndexedDB-related classes
Attachments
Patch (18.94 KB, patch)
2021-04-05 21:02 PDT, Simon Fraser (smfr)
no flags
Simon Fraser (smfr)
Comment 1 2021-04-05 21:02:44 PDT
Geoffrey Garen
Comment 2 2021-04-06 12:18:01 PDT
Comment on attachment 425237 [details] Patch r=me iOS-wk2 EWS failures seem unrelated
EWS
Comment 3 2021-04-06 13:43:06 PDT
Committed r275547: <https://commits.webkit.org/r275547> All reviewed patches have been landed. Closing bug and clearing flags on attachment 425237 [details].
Radar WebKit Bug Importer
Comment 4 2021-04-06 13:44:17 PDT
Darin Adler
Comment 5 2021-04-06 14:30:58 PDT
Comment on attachment 425237 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=425237&action=review > Source/WebCore/Modules/indexeddb/IndexedDB.h:62 > +enum class VersionNullness : uint8_t { Why not bool? > Source/WebCore/Modules/indexeddb/IndexedDB.h:78 > +enum class ObjectStoreRecordType : uint8_t { Why not bool? > Source/WebCore/Modules/indexeddb/IndexedDB.h:101 > +enum class GetAllType : uint8_t { Why not bool?
Simon Fraser (smfr)
Comment 6 2021-04-06 14:48:55 PDT
(In reply to Darin Adler from comment #5) > Comment on attachment 425237 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=425237&action=review > > > Source/WebCore/Modules/indexeddb/IndexedDB.h:62 > > +enum class VersionNullness : uint8_t { > > Why not bool? Do we prefer bool over uint8_t? Both are common in the code. If so, we should put this in the coding guidelines and update the style checker.
Darin Adler
Comment 7 2021-04-06 14:55:08 PDT
(In reply to Simon Fraser (smfr) from comment #6) > Do we prefer bool over uint8_t? Both are common in the code. If so, we > should put this in the coding guidelines and update the style checker. I certainly do for things that are obviously "Yes/No". And I prefer them for anything where there are only two states. But maybe we don’t have consensus. Makes sense that both are common. Having no type at all is also common.
Note You need to log in before you can comment on or make changes to this bug.