Changeset 244667 in webkit


Ignore:
Timestamp:
Apr 25, 2019 3:09:27 PM (5 years ago)
Author:
timothy@apple.com
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):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244664 r244667  
     12019-04-25  Timothy Hatcher  <timothy@apple.com>
     2
     3        Only send a synthetic mouse out event if synthetic mouse move events were sent.
     4        https://bugs.webkit.org/show_bug.cgi?id=197295
     5        rdar://problem/49040233
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        * WebProcess/WebPage/ios/WebPageIOS.mm:
     10        (WebKit::WebPage::completeSyntheticClick):
     11
    1122019-04-25  Timothy Hatcher  <timothy@apple.com>
    213
  • trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm

    r244570 r244667  
    690690        elementDidRefocus(*newFocusedElement);
    691691
    692     if (!tapWasHandled && nodeRespondingToClick.document().frame())
     692    // Only send a synthetic mouse out event if synthetic mouse move events were sent; this is true when ContentChangeObserver is enabled.
     693    if (nodeRespondingToClick.document().settings().contentChangeObserverEnabled() && !tapWasHandled && nodeRespondingToClick.document().frame())
    693694        nodeRespondingToClick.document().frame()->eventHandler().dispatchSyntheticMouseOut(PlatformMouseEvent(roundedAdjustedPoint, roundedAdjustedPoint, LeftButton, PlatformEvent::NoType, 0, shiftKey, ctrlKey, altKey, metaKey, WallTime::now(), 0, WebCore::NoTap));
     695
    694696    if (m_isClosed)
    695697        return;
Note: See TracChangeset for help on using the changeset viewer.