Changeset 74015 in webkit


Ignore:
Timestamp:
Dec 14, 2010 4:10:45 AM (13 years ago)
Author:
benjamin.poulain@nokia.com
Message:

2010-12-14 Benjamin Poulain <benjamin.poulain@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

WebKit 2 does not send touch cancel events correctly between processes
https://bugs.webkit.org/show_bug.cgi?id=50235

The classes WebKit2PlatformTouchPoint and WebKit2PlatformTouchEvent
misses the conversion of TouchCancel events and points.

This patch add the missing enums when converting from a WebTouchEvent
to a PlatformTouchEvent.

Testing is already covered by fast/events/touch/send-oncancel-event.html

  • Shared/WebEventConversion.cpp: (WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint): (WebKit::WebKit2PlatformTouchEvent::WebKit2PlatformTouchEvent):
Location:
trunk/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit2/ChangeLog

    r74013 r74015  
     12010-12-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        WebKit 2 does not send touch cancel events correctly between processes
     6        https://bugs.webkit.org/show_bug.cgi?id=50235
     7
     8        The classes WebKit2PlatformTouchPoint and WebKit2PlatformTouchEvent
     9        misses the conversion of TouchCancel events and points.
     10
     11        This patch add the missing enums when converting from a WebTouchEvent
     12        to a PlatformTouchEvent.
     13
     14        Testing is already covered by fast/events/touch/send-oncancel-event.html
     15
     16        * Shared/WebEventConversion.cpp:
     17        (WebKit::WebKit2PlatformTouchPoint::WebKit2PlatformTouchPoint):
     18        (WebKit::WebKit2PlatformTouchEvent::WebKit2PlatformTouchEvent):
     19
    1202010-12-14  Zalan Bujtas  <zbujtas@gmail.com>
    221
  • trunk/WebKit2/Shared/WebEventConversion.cpp

    r70892 r74015  
    180180            m_state = PlatformTouchPoint::TouchStationary;
    181181            break;
     182        case WebPlatformTouchPoint::TouchCancelled:
     183            m_state = PlatformTouchPoint::TouchCancelled;
     184            break;
    182185        default:
    183186            ASSERT_NOT_REACHED();
     
    203206            m_type = WebCore::TouchEnd;
    204207            break;
     208        case WebEvent::TouchCancel:
     209            m_type = WebCore::TouchCancel;
     210            break;
    205211        default:
    206212            ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.