Title: [244667] trunk/Source/WebKit
Revision
244667
Author
timo...@apple.com
Date
2019-04-25 15:09:27 -0700 (Thu, 25 Apr 2019)

Log Message

Only send a synthetic mouse out event if synthetic mouse move events were sent.
https://bugs.webkit.org/show_bug.cgi?id=197295
rdar://problem/49040233

Reviewed by Zalan Bujtas.

* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::completeSyntheticClick):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (244666 => 244667)


--- trunk/Source/WebKit/ChangeLog	2019-04-25 21:52:59 UTC (rev 244666)
+++ trunk/Source/WebKit/ChangeLog	2019-04-25 22:09:27 UTC (rev 244667)
@@ -1,5 +1,16 @@
 2019-04-25  Timothy Hatcher  <timo...@apple.com>
 
+        Only send a synthetic mouse out event if synthetic mouse move events were sent.
+        https://bugs.webkit.org/show_bug.cgi?id=197295
+        rdar://problem/49040233
+
+        Reviewed by Zalan Bujtas.
+
+        * WebProcess/WebPage/ios/WebPageIOS.mm:
+        (WebKit::WebPage::completeSyntheticClick):
+
+2019-04-25  Timothy Hatcher  <timo...@apple.com>
+
         Disable date and time inputs on iOSMac.
         https://bugs.webkit.org/show_bug.cgi?id=197287
         rdar://problem/46794376

Modified: trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm (244666 => 244667)


--- trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm	2019-04-25 21:52:59 UTC (rev 244666)
+++ trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm	2019-04-25 22:09:27 UTC (rev 244667)
@@ -689,8 +689,10 @@
     if (newFocusedElement && newFocusedElement == oldFocusedElement)
         elementDidRefocus(*newFocusedElement);
 
-    if (!tapWasHandled && nodeRespondingToClick.document().frame())
+    // Only send a synthetic mouse out event if synthetic mouse move events were sent; this is true when ContentChangeObserver is enabled.
+    if (nodeRespondingToClick.document().settings().contentChangeObserverEnabled() && !tapWasHandled && nodeRespondingToClick.document().frame())
         nodeRespondingToClick.document().frame()->eventHandler().dispatchSyntheticMouseOut(PlatformMouseEvent(roundedAdjustedPoint, roundedAdjustedPoint, LeftButton, PlatformEvent::NoType, 0, shiftKey, ctrlKey, altKey, metaKey, WallTime::now(), 0, WebCore::NoTap));
+
     if (m_isClosed)
         return;
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to