Changeset 202468 in webkit


Ignore:
Timestamp:
Jun 25, 2016 2:00:47 AM (8 years ago)
Author:
pvollan@apple.com
Message:

[Win] The test fast/events/wheel-event-destroys-frame.html is timing out.
https://bugs.webkit.org/show_bug.cgi?id=159086

Reviewed by Alex Christensen.

Implement required wheel event function in event sender.

  • DumpRenderTree/win/EventSender.cpp:

(mouseScrollByWithWheelAndMomentumPhasesCallback):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r202461 r202468  
     12016-06-25  Per Arne Vollan  <pvollan@apple.com>
     2
     3        [Win] The test fast/events/wheel-event-destroys-frame.html is timing out.
     4        https://bugs.webkit.org/show_bug.cgi?id=159086
     5
     6        Reviewed by Alex Christensen.
     7
     8        Implement required wheel event function in event sender.
     9 
     10        * DumpRenderTree/win/EventSender.cpp:
     11        (mouseScrollByWithWheelAndMomentumPhasesCallback):
     12
    1132016-06-24  Filip Pizlo  <fpizlo@apple.com>
    214
  • trunk/Tools/DumpRenderTree/win/EventSender.cpp

    r191704 r202468  
    782782}
    783783
     784static JSValueRef mouseScrollByWithWheelAndMomentumPhasesCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
     785{
     786    if (argumentCount < 1)
     787        return JSValueMakeUndefined(context);
     788
     789    double delta = JSValueToNumber(context, arguments[1], exception);
     790
     791    RECT rect;
     792    ::GetWindowRect(webViewWindow, &rect);
     793
     794    MSG msg = makeMsg(webViewWindow, WM_MOUSEWHEEL, MAKEWPARAM(0, delta), MAKELPARAM(rect.left + lastMousePosition.x, rect.top + lastMousePosition.y));
     795    dispatchMessage(&msg);
     796
     797    return JSValueMakeUndefined(context);
     798}
     799
    784800static JSStaticFunction staticFunctions[] = {
    785801    { "contextClick", contextClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
     
    796812    { "beginDragWithFiles", beginDragWithFilesCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    797813    { "scalePageBy", scalePageByCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
     814    { "mouseScrollByWithWheelAndMomentumPhases", mouseScrollByWithWheelAndMomentumPhasesCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    798815    { 0, 0, 0 }
    799816};
Note: See TracChangeset for help on using the changeset viewer.