Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1754)

Unified Diff: Source/web/WebPagePopupImpl.cpp

Issue 490783003: Reduce hit test on ShowPress by moving event targeting to WebViewImpl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update hit test counts Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698