Changeset 202468 in webkit
- Timestamp:
- Jun 25, 2016 2:00:47 AM (8 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r202461 r202468 1 2016-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 1 13 2016-06-24 Filip Pizlo <fpizlo@apple.com> 2 14 -
trunk/Tools/DumpRenderTree/win/EventSender.cpp
r191704 r202468 782 782 } 783 783 784 static 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 784 800 static JSStaticFunction staticFunctions[] = { 785 801 { "contextClick", contextClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, … … 796 812 { "beginDragWithFiles", beginDragWithFilesCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 797 813 { "scalePageBy", scalePageByCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 814 { "mouseScrollByWithWheelAndMomentumPhases", mouseScrollByWithWheelAndMomentumPhasesCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 798 815 { 0, 0, 0 } 799 816 };
Note: See TracChangeset
for help on using the changeset viewer.