WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
80802
Rename OptionsObject to Dictionary
https://bugs.webkit.org/show_bug.cgi?id=80802
Summary
Rename OptionsObject to Dictionary
Kentaro Hara
Reported
2012-03-11 19:15:16 PDT
For naming consistency with JSDictionary.{h,cpp}, we can rename OptionObject.{h,cpp} with V8Dictionary.{h,cpp}.
Attachments
Patch
(60.46 KB, patch)
2012-03-11 19:23 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Patch
(74.16 KB, patch)
2012-03-12 23:03 PDT
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2012-03-11 19:23:15 PDT
Created
attachment 131272
[details]
Patch
Gustavo Noronha (kov)
Comment 2
2012-03-11 19:59:22 PDT
Comment on
attachment 131272
[details]
Patch
Attachment 131272
[details]
did not pass gtk-ews (gtk): Output:
http://queues.webkit.org/results/11936673
Build Bot
Comment 3
2012-03-11 21:21:11 PDT
Comment on
attachment 131272
[details]
Patch
Attachment 131272
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/11940684
Kentaro Hara
Comment 4
2012-03-12 01:58:04 PDT
Comment on
attachment 131272
[details]
Patch I found this renaming is wrong. As you can see in IDBObjectStore.h and IDBKeyRange.h, WebCore is expecting that OptionsObject.h exists both in JSC and in V8. OptionsObject.h should be a common interface between JSC and V8. So the right fix would be - to implement bindings/js/OptionsObject.h so that it has the same interface as bindings/v8/OptionsObject.h. bindings/js/OptionsObject.h would be just a wrapper of JSDictionary. - to rename OptionsObject.{h,cpp} to Dictionary.{h,cpp}, for clarification. The reason why IDBObjectStore.h and IDBKeyRange.h are not currently causing any build errors is that IndexedDB is enabled in Chromium/V8 only.
Ryosuke Niwa
Comment 5
2012-03-12 08:57:17 PDT
(In reply to
comment #4
)
> (From update of
attachment 131272
[details]
) > I found this renaming is wrong. As you can see in IDBObjectStore.h and IDBKeyRange.h, WebCore is expecting that OptionsObject.h exists both in JSC and in V8. OptionsObject.h should be a common interface between JSC and V8. So the right fix would be
Can we instead call it "Dictionary.h"? OptionsObject is a bad name for a generic object like this one because it can be used for things other than options.
Joshua Bell
Comment 6
2012-03-12 13:39:42 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > (From update of
attachment 131272
[details]
[details]) > > I found this renaming is wrong. As you can see in IDBObjectStore.h and IDBKeyRange.h, WebCore is expecting that OptionsObject.h exists both in JSC and in V8. OptionsObject.h should be a common interface between JSC and V8. So the right fix would be > > Can we instead call it "Dictionary.h"? OptionsObject is a bad name for a generic object like this one because it can be used for things other than options.
FYI:
https://bugs.webkit.org/show_bug.cgi?id=80207
adds an empty implementation of OptionsObject (patches in that bug are trying to get IDB to compile w/ JSC) +1 to a name evocative of WebIDL/Dictionary.
Kentaro Hara
Comment 7
2012-03-12 17:14:34 PDT
(In reply to
comment #6
)
> > Can we instead call it "Dictionary.h"? OptionsObject is a bad name for a generic object like this one because it can be used for things other than options. > > FYI:
https://bugs.webkit.org/show_bug.cgi?id=80207
adds an empty implementation of OptionsObject (patches in that bug are trying to get IDB to compile w/ JSC)
OK, please land the patch for 80207 first, to avoid conflict.
Joshua Bell
Comment 8
2012-03-12 17:16:07 PDT
Adding benjamin@ who is working on 80207
Kentaro Hara
Comment 9
2012-03-12 23:03:21 PDT
Created
attachment 131552
[details]
Patch
WebKit Review Bot
Comment 10
2012-03-12 23:06:56 PDT
Attachment 131552
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp:1421: Local variables should never be PassRefPtr (see
http://webkit.org/coding/RefPtr.html
). [readability/pass_ptr] [5] Total errors found: 1 in 32 files If any of these errors are false positives, please file a bug against check-webkit-style.
Kentaro Hara
Comment 11
2012-03-13 01:49:48 PDT
Ews-bots look fine. Committed manually to avoid style check errors.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug