RESOLVED FIXED 90016
IndexedDB: make IDBKey immutable
https://bugs.webkit.org/show_bug.cgi?id=90016
Summary IndexedDB: make IDBKey immutable
Alec Flett
Reported 2012-06-26 14:43:45 PDT
IndexedDB: const-ify IDBKey
Attachments
Patch (6.09 KB, patch)
2012-06-26 14:45 PDT, Alec Flett
no flags
Patch (6.08 KB, patch)
2012-06-27 12:26 PDT, Alec Flett
no flags
Patch for landing (6.09 KB, patch)
2012-06-27 14:30 PDT, Alec Flett
no flags
Alec Flett
Comment 1 2012-06-26 14:45:15 PDT
Alec Flett
Comment 2 2012-06-26 14:46:03 PDT
jsbell@ - something we chatted about once that I finally had to deal with :)
Alec Flett
Comment 3 2012-06-26 15:01:50 PDT
tony@ - r? cq?
Joshua Bell
Comment 4 2012-06-26 15:09:36 PDT
Comment on attachment 149610 [details] Patch That was easy - LGTM but... View in context: https://bugs.webkit.org/attachment.cgi?id=149610&action=review > Source/WebCore/Modules/indexeddb/IDBKey.h:44 > RefPtr<IDBKey> idbKey = adoptRef(new IDBKey()); Can be further simplified down to: return adoptRef(...); > Source/WebCore/Modules/indexeddb/IDBKey.h:50 > + RefPtr<IDBKey> idbKey = adoptRef(new IDBKey(NumberType, number)); Ditto, etc.
Alec Flett
Comment 5 2012-06-27 12:26:38 PDT
Alec Flett
Comment 6 2012-06-27 12:29:08 PDT
tony@ - r? cq?
Tony Chang
Comment 7 2012-06-27 13:29:26 PDT
Comment on attachment 149782 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=149782&action=review > Source/WebCore/ChangeLog:3 > + IndexedDB: const-ify IDBKey Nit: I would probably use immutable in the title, since it's more descriptive than const-ify. > Source/WebCore/Modules/indexeddb/IDBKey.h:153 > + IDBKey(const String& value) : m_type(StringType), m_string(value), m_number(0), m_sizeEstimate(kOverheadSize + value.length() * sizeof(UChar)) { } Nit: explicit
Alec Flett
Comment 8 2012-06-27 13:44:47 PDT
I'm going to use land-safely even though my comitter status hasn't been updated, so that a committer can re-cq+ it.
Tony Chang
Comment 9 2012-06-27 14:13:48 PDT
(In reply to comment #8) > I'm going to use land-safely even though my comitter status hasn't been updated, so that a committer can re-cq+ it. land-safely should set cq? if you're not in committers.py (this was a recent fix).
Alec Flett
Comment 10 2012-06-27 14:30:00 PDT
Created attachment 149796 [details] Patch for landing
WebKit Review Bot
Comment 11 2012-06-27 15:14:09 PDT
Comment on attachment 149796 [details] Patch for landing Clearing flags on attachment: 149796 Committed r121377: <http://trac.webkit.org/changeset/121377>
WebKit Review Bot
Comment 12 2012-06-27 15:14:14 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.