RESOLVED FIXED 56950
Fix ambiguous method call in V8 IDL generated code for DOMStringList callback parameter
https://bugs.webkit.org/show_bug.cgi?id=56950
Summary Fix ambiguous method call in V8 IDL generated code for DOMStringList callback...
Tyler Close
Reported 2011-03-23 12:31:31 PDT
Fix ambiguous method call in V8 IDL generated code for DOMStringList callback parameter
Attachments
Patch (12.46 KB, patch)
2011-03-23 12:33 PDT, Tyler Close
no flags
Tyler Close
Comment 1 2011-03-23 12:33:10 PDT
WebKit Review Bot
Comment 2 2011-03-23 12:36:17 PDT
Attachment 86669 [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/GObject/WebKitDOMTestCallback.cpp:130: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 1 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jeremy Orlow
Comment 3 2011-03-23 12:38:30 PDT
Comment on attachment 86669 [details] Patch r=me
WebKit Commit Bot
Comment 4 2011-03-23 13:13:38 PDT
Comment on attachment 86669 [details] Patch Clearing flags on attachment: 86669 Committed r81799: <http://trac.webkit.org/changeset/81799>
WebKit Commit Bot
Comment 5 2011-03-23 13:13:42 PDT
All reviewed patches have been landed. Closing bug.
Nate Chapin
Comment 6 2011-03-24 13:00:15 PDT
Is there a reason it's necessary to use a PassRefPtr<DOMStringList> in these cases, rather than a raw DOMStringList* ? Sorry for not asking before the patch landed.
Tyler Close
Comment 7 2011-03-24 13:18:47 PDT
@japhet: I tried using the raw type DOMStringList* first. As I recall, there were a couple problems with that: v8ValueToWebCoreDOMStringList() returns a PassRefPtr, so you get another compile error in the IDL stubs. It also caused problems for some of the hand-written IDB stubs.
Nate Chapin
Comment 8 2011-03-24 13:20:58 PDT
(In reply to comment #7) > @japhet: I tried using the raw type DOMStringList* first. As I recall, there were a couple problems with that: v8ValueToWebCoreDOMStringList() returns a PassRefPtr, so you get another compile error in the IDL stubs. It also caused problems for some of the hand-written IDB stubs. Ok, sounds good. Just figured I should ask, since I didn't know how DOMStringList is used well enough to have known about the v8ValueToWebCoreDOMStringList issue.
Note You need to log in before you can comment on or make changes to this bug.