| 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 1f84d71d57abbb8d51976a282498b6cb854f2930..f823f1bc05a4de49be8a02b10994c2d1765f8256 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -2923,10 +2923,8 @@ bool EventHandler::sendContextMenuEventForKey(Element* overrideTargetElement)
|
| int y = firstRect.maxY() ? firstRect.maxY() - 1 : 0;
|
| locationInRootFrame = view->contentsToRootFrame(IntPoint(x, y));
|
| } else if (focusedElement) {
|
| - IntRect clippedRect = focusedElement->boundsInViewportSpace();
|
| - // FIXME: boundsInViewportSpace is actually in the weird scaled but untranslated coordinate space of
|
| - // the old-style visual viewport. crbug.com/459591.
|
| - locationInRootFrame = flooredIntPoint(visualViewport.viewportCSSPixelsToRootFrame(clippedRect.center()));
|
| + IntRect clippedRect = focusedElement->boundsInViewport();
|
| + locationInRootFrame = visualViewport.viewportToRootFrame(clippedRect.center());
|
| } else {
|
| locationInRootFrame = IntPoint(
|
| rightAligned
|
|
|