Index: Source/web/WebPagePopupImpl.cpp |
diff --git a/Source/web/WebPagePopupImpl.cpp b/Source/web/WebPagePopupImpl.cpp |
index 90bda83dd51857d4ae947f62c899cd34342416b3..bbcb162d184383dc3f534b1247c5602c83ba86a4 100644 |
--- a/Source/web/WebPagePopupImpl.cpp |
+++ b/Source/web/WebPagePopupImpl.cpp |
@@ -331,7 +331,9 @@ bool WebPagePopupImpl::handleGestureEvent(const WebGestureEvent& event) |
if (m_closing || !m_page || !m_page->mainFrame() || !toLocalFrame(m_page->mainFrame())->view()) |
return false; |
LocalFrame& frame = *toLocalFrame(m_page->mainFrame()); |
- return frame.eventHandler().handleGestureEvent(PlatformGestureEventBuilder(frame.view(), event)); |
+ PlatformGestureEventBuilder platformEvent(frame.view(), event); |
+ GestureEventWithHitTestResults targetedEvent = frame.eventHandler().targetGestureEvent(platformEvent); |
+ return frame.eventHandler().handleGestureEvent(targetedEvent); |
} |
bool WebPagePopupImpl::handleInputEvent(const WebInputEvent& event) |