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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index e9744442717815102b2be1a51a6a88b80dff7ada..7b406cc0be4771f40ccb79ee5d6e4395033f1f12 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -678,7 +678,8 @@ Document* LocalFrame::documentAtPoint(const IntPoint& pointInRootFrame)
return nullptr;
IntPoint pt = view()->rootFrameToContents(pointInRootFrame);
- HitTestResult result = HitTestResult(pt);
+ HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::Active);
+ HitTestResult result = HitTestResult(request, pt);
Rick Byers 2015/03/31 00:50:59 looks like you should be able to avoid creating th
ramya.v 2015/03/31 09:41:36 Done.
if (contentRenderer())
result = eventHandler().hitTestResultAtPoint(pt, HitTestRequest::ReadOnly | HitTestRequest::Active);

Powered by Google App Engine
This is Rietveld 408576698