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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1814863002: Make page popups work under OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebContentsImpl::SendScreenRects simplified Created 4 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: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 6dd54001587b8793c2427a3817dc2ad4c4f751d5..a4f382cea478e2a993e03c2d100f24fb761f281c 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -2896,7 +2896,7 @@ WebInputEventResult EventHandler::sendContextMenuEventForKey(Element* overrideTa
m_frame->view()->setCursor(pointerCursor());
IntPoint locationInViewport = visualViewport.rootFrameToViewport(locationInRootFrame);
- IntPoint globalPosition = view->hostWindow()->viewportToScreen(IntRect(locationInViewport, IntSize())).location();
+ IntPoint globalPosition = view->hostWindow()->viewportToScreen(IntRect(locationInViewport, IntSize()), m_frame->view()).location();
Node* targetNode = overrideTargetElement ? overrideTargetElement : doc->focusedElement();
if (!targetNode)

Powered by Google App Engine
This is Rietveld 408576698