Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GTK] WebKitWebView should send crossing events to the WebProcess
https://bugs.webkit.org/show_bug.cgi?id=153740 Reviewed by Michael Catanzaro. Source/WebCore: Update the target element under the mouse also when only updating scrollbars, so that if the mouse enters the page when the window is not active, the scroll animator is notified that the mouse entered the scrollable area. * page/EventHandler.cpp: (WebCore::EventHandler::handleMouseMoveEvent): Call updateMouseEventTargetNode() before early returning in case of only updating scrollbars. Source/WebKit2: We don't currently handle crossing events in the web view (enter/leave). That's why if you hover a scrollbar and leave the window, the scrollbar is still rendered as hovered. * Shared/gtk/WebEventFactory.cpp: (WebKit::buttonForEvent): Handle the case of GDK_ENTER_NOTIFY and GDK_LEAVE_NOTIFY events. (WebKit::WebEventFactory::createWebMouseEvent): Ditto. * UIProcess/API/gtk/WebKitWebViewBase.cpp: (webkitWebViewBaseRealize): Add GDK_ENTER_NOTIFY_MASK and GDK_LEAVE_NOTIFY_MASK flags to the web view event mask. (webkitWebViewBaseCrossingNotifyEvent): Handle enter/leave notify events by generating a mouse move event, ensuring the double to int conversion will not cause any problem. (webkit_web_view_base_class_init): Add an implementation for enter_notify_event and leave_notify_event. Canonical link: https://commits.webkit.org/172092@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing with 100 additions and 5 deletions.