| 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 898e7d53aeac75f92ae1735d289de4cfb5aceade..cedc440a367de36c1e7b282579c832fb438fdc5d 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
|
|
|