Summary: | Don't re-use the same EventDispatcher instance to dispatch events. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Hayato Ito <hayato> | ||||
Component: | UI Events | Assignee: | Hayato Ito <hayato> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | dglazkov, dominicc, morrita, shinyak, tasak, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 91290 | ||||||
Attachments: |
|
Description
Hayato Ito
2012-08-06 19:12:53 PDT
Created attachment 156868 [details]
Fix dblclick event and add ASSERT
Comment on attachment 156868 [details]
Fix dblclick event and add ASSERT
ok
Comment on attachment 156868 [details] Fix dblclick event and add ASSERT Clearing flags on attachment: 156868 Committed r124975: <http://trac.webkit.org/changeset/124975> All reviewed patches have been landed. Closing bug. Comment on attachment 156868 [details] Fix dblclick event and add ASSERT View in context: https://bugs.webkit.org/attachment.cgi?id=156868&action=review > Source/WebCore/dom/MouseEvent.cpp:-218 > - doubleClickEvent->initMouseEvent(eventNames().dblclickEvent, event()->bubbles(), event()->cancelable(), event()->view(), > - event()->detail(), event()->screenX(), event()->screenY(), event()->clientX(), event()->clientY(), > - event()->ctrlKey(), event()->altKey(), event()->shiftKey(), event()->metaKey(), > - event()->button(), relatedTarget); This is the correct formatting for a multiple line function call in the WebKit coding style. > Source/WebCore/dom/MouseEvent.cpp:219 > + doubleClickEvent->initMouseEvent(eventNames().dblclickEvent, event()->bubbles(), event()->cancelable(), event()->view(), > + event()->detail(), event()->screenX(), event()->screenY(), event()->clientX(), event()->clientY(), > + event()->ctrlKey(), event()->altKey(), event()->shiftKey(), event()->metaKey(), > + event()->button(), relatedTarget); Whereas this is incorrect. Oh. Nice catch. Thank you. I think WebKit doesn't like a patch which only fixes style. So I'll fix it if i have a chance later. (In reply to comment #5) > (From update of attachment 156868 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=156868&action=review > > > Source/WebCore/dom/MouseEvent.cpp:-218 > > - doubleClickEvent->initMouseEvent(eventNames().dblclickEvent, event()->bubbles(), event()->cancelable(), event()->view(), > > - event()->detail(), event()->screenX(), event()->screenY(), event()->clientX(), event()->clientY(), > > - event()->ctrlKey(), event()->altKey(), event()->shiftKey(), event()->metaKey(), > > - event()->button(), relatedTarget); > > This is the correct formatting for a multiple line function call in the WebKit coding style. > > > Source/WebCore/dom/MouseEvent.cpp:219 > > + doubleClickEvent->initMouseEvent(eventNames().dblclickEvent, event()->bubbles(), event()->cancelable(), event()->view(), > > + event()->detail(), event()->screenX(), event()->screenY(), event()->clientX(), event()->clientY(), > > + event()->ctrlKey(), event()->altKey(), event()->shiftKey(), event()->metaKey(), > > + event()->button(), relatedTarget); > > Whereas this is incorrect. |