Index: Source/web/ContextMenuClientImpl.cpp |
diff --git a/Source/web/ContextMenuClientImpl.cpp b/Source/web/ContextMenuClientImpl.cpp |
index 73bd4e0a89a358846b3be112573a3a2286abbaee..f0425637956b0f959e71fd524f33abe1e41764cb 100644 |
--- a/Source/web/ContextMenuClientImpl.cpp |
+++ b/Source/web/ContextMenuClientImpl.cpp |
@@ -195,14 +195,7 @@ void ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu) |
LocalFrame* selectedFrame = r.innerNodeFrame(); |
WebContextMenuData data; |
- IntPoint mousePoint = selectedFrame->view()->contentsToWindow(r.roundedPointInInnerNodeFrame()); |
- |
- // FIXME(bokan): crbug.com/371902 - We shouldn't be making these scale |
- // related coordinate transformatios in an ad hoc way. |
- PinchViewport& pinchViewport = selectedFrame->host()->pinchViewport(); |
- mousePoint -= flooredIntSize(pinchViewport.visibleRect().location()); |
- mousePoint.scale(m_webView->pageScaleFactor(), m_webView->pageScaleFactor()); |
- data.mousePosition = mousePoint; |
+ data.mousePosition = selectedFrame->view()->contentsToViewport(r.roundedPointInInnerNodeFrame()); |
// Compute edit flags. |
data.editFlags = WebContextMenuData::CanDoNone; |