Modified: trunk/Tools/ChangeLog (202467 => 202468)
--- trunk/Tools/ChangeLog 2016-06-25 02:33:42 UTC (rev 202467)
+++ trunk/Tools/ChangeLog 2016-06-25 09:00:47 UTC (rev 202468)
@@ -1,3 +1,15 @@
+2016-06-25 Per Arne Vollan <[email protected]>
+
+ [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):
+
2016-06-24 Filip Pizlo <[email protected]>
REGRESSION: Weak symbol warning when linking TestWebKitAPI
Modified: trunk/Tools/DumpRenderTree/win/EventSender.cpp (202467 => 202468)
--- trunk/Tools/DumpRenderTree/win/EventSender.cpp 2016-06-25 02:33:42 UTC (rev 202467)
+++ trunk/Tools/DumpRenderTree/win/EventSender.cpp 2016-06-25 09:00:47 UTC (rev 202468)
@@ -781,6 +781,22 @@
return JSValueMakeUndefined(context);
}
+static JSValueRef mouseScrollByWithWheelAndMomentumPhasesCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
+{
+ if (argumentCount < 1)
+ return JSValueMakeUndefined(context);
+
+ double delta = JSValueToNumber(context, arguments[1], exception);
+
+ RECT rect;
+ ::GetWindowRect(webViewWindow, &rect);
+
+ MSG msg = makeMsg(webViewWindow, WM_MOUSEWHEEL, MAKEWPARAM(0, delta), MAKELPARAM(rect.left + lastMousePosition.x, rect.top + lastMousePosition.y));
+ dispatchMessage(&msg);
+
+ return JSValueMakeUndefined(context);
+}
+
static JSStaticFunction staticFunctions[] = {
{ "contextClick", contextClickCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "mouseDown", mouseDownCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
@@ -795,6 +811,7 @@
{ "zoomPageOut", zoomPageOutCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "beginDragWithFiles", beginDragWithFilesCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ "scalePageBy", scalePageByCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
+ { "mouseScrollByWithWheelAndMomentumPhases", mouseScrollByWithWheelAndMomentumPhasesCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
{ 0, 0, 0 }
};