Summary: | Simulated events instances do not all have the same underlying event | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jon Lee <jonlee> | ||||||||
Component: | UI Events | Assignee: | Jon Lee <jonlee> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | andersca, ap, beidson, mitz, sam, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Mac | ||||||||||
OS: | OS X 10.8 | ||||||||||
Attachments: |
|
Description
Jon Lee
2012-11-16 00:22:29 PST
Created attachment 174630 [details]
Patch
Please follow the advice of <http://www.webkit.org/coding/RefPtr.html> and rename the function parameter prpUnderlyingEvent, and transfer to a RefPtr with the old name at the beginning of the function. (In reply to comment #3) > Please follow the advice of <http://www.webkit.org/coding/RefPtr.html> and rename the function parameter prpUnderlyingEvent, and transfer to a RefPtr with the old name at the beginning of the function. Yay! Idioms!!! Comment on attachment 174630 [details]
Patch
Yay idioms! (do the prp thing)
A better solution (and one you should use) would be to change the argument type form PassRefPtr to a plain pointer. (In reply to comment #6) > A better solution (and one you should use) would be to change the argument type form PassRefPtr to a plain pointer. Great point - ownership (a reference) is not actually being passed in this case, and the arguments to the 3 callees are all plain ptrs. Created attachment 174711 [details]
Patch
Comment on attachment 174711 [details]
Patch
Please do use plain pointers.
Created attachment 174736 [details]
Patch
Committed 134995: http://trac.webkit.org/changeset/134995 Comment on attachment 174736 [details] Patch Attachment 174736 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14878003 Chromium fix in r135000. |