Changeset 246849 in webkit


Ignore:
Timestamp:
Jun 26, 2019, 3:11:30 PM (5 years ago)
Author:
graouts@webkit.org
Message:

[Pointer Events] Respect pointer capture when dispatching mouse boundary events and updating :hover
https://bugs.webkit.org/show_bug.cgi?id=198999
<rdar://problem/51979477>

Reviewed by Dean Jackson.

Make sure we don't return early prior to setting the flag that prevents re-entrancy, or else we would never
enter this function again. No new tests, this was caught because Pointer Events WPT tests on iOS tests regressed.

  • page/PointerCaptureController.cpp:

(WebCore::PointerCaptureController::processPendingPointerCapture):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r246846 r246849  
     12019-06-26  Antoine Quint  <graouts@apple.com>
     2
     3        [Pointer Events] Respect pointer capture when dispatching mouse boundary events and updating :hover
     4        https://bugs.webkit.org/show_bug.cgi?id=198999
     5        <rdar://problem/51979477>
     6
     7        Reviewed by Dean Jackson.
     8
     9        Make sure we don't return early prior to setting the flag that prevents re-entrancy, or else we would never
     10        enter this function again. No new tests, this was caught because Pointer Events WPT tests on iOS tests regressed.
     11
     12        * page/PointerCaptureController.cpp:
     13        (WebCore::PointerCaptureController::processPendingPointerCapture):
     14
    1152019-06-26  Myles C. Maxfield  <mmaxfield@apple.com>
    216
  • trunk/Source/WebCore/page/PointerCaptureController.cpp

    r246844 r246849  
    410410void PointerCaptureController::processPendingPointerCapture(PointerID pointerId)
    411411{
     412    auto iterator = m_activePointerIdsToCapturingData.find(pointerId);
     413    if (iterator == m_activePointerIdsToCapturingData.end())
     414        return;
     415
    412416    if (m_processingPendingPointerCapture)
    413417        return;
    414418
    415419    m_processingPendingPointerCapture = true;
    416 
    417     auto iterator = m_activePointerIdsToCapturingData.find(pointerId);
    418     if (iterator == m_activePointerIdsToCapturingData.end())
    419         return;
    420420
    421421    auto& capturingData = iterator->value;
Note: See TracChangeset for help on using the changeset viewer.