-
dbates@webkit.org authored
Reviewed by Kenneth Rohde Christiansen. [Qt] fast/events/fire-mousedown-while-pressing-mouse-button.html failing https://bugs.webkit.org/show_bug.cgi?id=58863 Fixes an issue where a platform mouse event corresponding to mouse button A may be associated with the wrong WebCore mouse button when the event occurs while pressing and holding a mouse button B, where A != B. For example, a person clicks the middle mouse button while pressing and holding the left mouse button. Then we dispatch the following DOM events: mouse down for left button, mouse down for left button, mouse up for left button. But, we should have dispatched: mouse down for left button, mouse down for middle button, mouse up for middle button. * platform/qt/PlatformMouseEventQt.cpp: (WebCore::mouseEventTypeAndMouseButtonFromQEvent): Added. (WebCore::PlatformMouseEvent::PlatformMouseEvent): Modified to call mouseEventTypeAndMouseButtonFromQEvent() to determine the WebCore mouse event type and button from the platform-specific event. 2011-05-12 Daniel Bates <dbates@rim.com> Reviewed by Kenneth Rohde Christiansen. [Qt] fast/events/fire-mousedown-while-pressing-mouse-button.html failing https://bugs.webkit.org/show_bug.cgi?id=58863 Remove test case fast/events/fire-mousedown-while-pressing-mouse-button.html from the Skipped list since it now passes. * platform/qt/Skipped: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86381 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f28ec400