Hovering over a slotted Text node clears hover state
[WebKit-https.git] / Source / WebKit / mac / WebView / WebImmediateActionController.mm
index ad98356..1f4a50d 100644 (file)
@@ -150,7 +150,7 @@ using namespace WebCore;
     _hitTestResult = coreFrame->eventHandler().hitTestResultAtPoint(IntPoint(viewPoint));
     coreFrame->eventHandler().setImmediateActionStage(ImmediateActionStage::PerformedHitTest);
 
-    if (Element* element = _hitTestResult.innerElement())
+    if (Element* element = _hitTestResult.targetElement())
         _contentPreventsDefault = element->dispatchMouseForceWillBegin();
 }