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

Unified Diff: Source/core/page/ContextMenuController.cpp

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updating as per review comments 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/page/ContextMenuController.cpp
diff --git a/Source/core/page/ContextMenuController.cpp b/Source/core/page/ContextMenuController.cpp
index f8ad4daf9dc1ead2c8491578791b92ee60b4a774..f672c4456ff63728fa0fab13094776e274eef965 100644
--- a/Source/core/page/ContextMenuController.cpp
+++ b/Source/core/page/ContextMenuController.cpp
@@ -158,10 +158,11 @@ PassOwnPtr<ContextMenu> ContextMenuController::createContextMenu(Event* event)
PassOwnPtr<ContextMenu> ContextMenuController::createContextMenu(LocalFrame* frame, const LayoutPoint& location)
{
- HitTestResult result(location);
+ HitTestRequest::HitTestRequestType type = HitTestRequest::ReadOnly | HitTestRequest::Active;
+ HitTestResult result(HitTestRequest(type), location);
Rick Byers 2015/03/31 13:53:42 ditto
ramya.v 2015/04/01 07:13:00 Done.
if (frame)
- result = frame->eventHandler().hitTestResultAtPoint(location, HitTestRequest::ReadOnly | HitTestRequest::Active);
+ result = frame->eventHandler().hitTestResultAtPoint(location, type);
if (!result.innerNonSharedNode())
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698