Title: [246728] trunk/Source/WebCore
Revision
246728
Author
[email protected]
Date
2019-06-24 03:00:59 -0700 (Mon, 24 Jun 2019)

Log 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/52005663>

Reviewed by Dean Jackson.

We should only set the mouse events capturing element in EventHandler if we're dealing with mouse-originated Pointer Events (part 2).

* page/PointerCaptureController.cpp:
(WebCore::PointerCaptureController::releasePointerCapture):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (246727 => 246728)


--- trunk/Source/WebCore/ChangeLog	2019-06-24 06:20:45 UTC (rev 246727)
+++ trunk/Source/WebCore/ChangeLog	2019-06-24 10:00:59 UTC (rev 246728)
@@ -1,3 +1,16 @@
+2019-06-23  Antoine Quint  <[email protected]>
+
+        [Pointer Events] Respect pointer capture when dispatching mouse boundary events and updating :hover
+        https://bugs.webkit.org/show_bug.cgi?id=198999
+        <rdar://problem/52005663>
+
+        Reviewed by Dean Jackson.
+
+        We should only set the mouse events capturing element in EventHandler if we're dealing with mouse-originated Pointer Events (part 2).
+
+        * page/PointerCaptureController.cpp:
+        (WebCore::PointerCaptureController::releasePointerCapture):
+
 2019-06-23  Simon Fraser  <[email protected]>
 
         [Async overflow scroll] Clipped composited layers inside overflow scroll jitter and get incorrectly clipped

Modified: trunk/Source/WebCore/page/PointerCaptureController.cpp (246727 => 246728)


--- trunk/Source/WebCore/page/PointerCaptureController.cpp	2019-06-24 06:20:45 UTC (rev 246727)
+++ trunk/Source/WebCore/page/PointerCaptureController.cpp	2019-06-24 10:00:59 UTC (rev 246728)
@@ -104,12 +104,14 @@
         return { };
 
     // 3. For the specified pointerId, clear the pending pointer capture target override, if set.
-    iterator->value.pendingTargetOverride = nullptr;
+    auto& capturingData = iterator->value;
+    capturingData.pendingTargetOverride = nullptr;
 
     // Since we may not call processPendingPointerCapture() until the dispatch of the next event,
     // we must reset EventHandler's capturing mouse element right now so that the next event processed
     // does not use it as an overriding target.
-    m_page.mainFrame().eventHandler().setCapturingMouseEventsElement(nullptr);
+    if (capturingData.pointerType == PointerEvent::mousePointerType())
+        m_page.mainFrame().eventHandler().setCapturingMouseEventsElement(nullptr);
 
     return { };
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to