Hovering over a slotted Text node clears hover state
[WebKit-https.git] / Source / WebCore / dom / Document.cpp
index d714172..151fb67 100644 (file)
@@ -3277,7 +3277,7 @@ MouseEventWithHitTestResults Document::prepareMouseEvent(const HitTestRequest& r
     renderView()->hitTest(request, result);
 
     if (!request.readOnly())
-        updateHoverActiveState(request, result.innerElement());
+        updateHoverActiveState(request, result.targetElement());
 
     return MouseEventWithHitTestResults(event, result);
 }