Index: Source/core/page/ContextMenuController.cpp |
diff --git a/Source/core/page/ContextMenuController.cpp b/Source/core/page/ContextMenuController.cpp |
index f8ad4daf9dc1ead2c8491578791b92ee60b4a774..281ac0bb331b4718f0f56578ce332d402a32bdfd 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(type, location); |
if (frame) |
- result = frame->eventHandler().hitTestResultAtPoint(location, HitTestRequest::ReadOnly | HitTestRequest::Active); |
+ result = frame->eventHandler().hitTestResultAtPoint(location, type); |
if (!result.innerNonSharedNode()) |
return nullptr; |