-
ap@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=122179 Reviewed by Darin Adler. DumpRenderTree and WebKitTestRunner send events directly to WebHMTLView or WKView, which doesn't update [NSApp currentEvent]. But there are many places in WebKit that use the current event. * DumpRenderTree/mac/EventSendingController.mm: (-[EventSendingController mouseDown:withModifiers:]): (-[EventSendingController mouseUp:withModifiers:]): (-[EventSendingController mouseMoveToX:Y:]): (-[EventSendingController mouseScrollByX:andY:continuously:]): (-[EventSendingController contextClick]): (-[EventSendingController keyDown:withModifiers:withLocation:]): * WebKitTestRunner/mac/EventSenderProxy.mm: (WTR::EventSenderProxy::mouseDown): (WTR::EventSenderProxy::mouseUp): (WTR::EventSenderProxy::mouseMoveTo): (WTR::EventSenderProxy::keyDown): (WTR::EventSenderProxy::mouseScrollBy): Update the current event. We were already using the SPI in WebKit. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
9ea7a8f3