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 e18894fb9057d571d5e348c36482c92de538ced8..88ac09c925deb6dee8f3966aa073b9c0e16d1b62 100644 |
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp |
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp |
@@ -2976,7 +2976,7 @@ WebInputEventResult EventHandler::sendContextMenuEventForKey(Element* overrideTa |
int y = firstRect.maxY() ? firstRect.maxY() - 1 : 0; |
locationInRootFrame = view->contentsToRootFrame(IntPoint(x, y)); |
} else if (focusedElement) { |
- IntRect clippedRect = focusedElement->boundsInViewport(); |
+ IntRect clippedRect = focusedElement->boundsInViewportInt(); |
locationInRootFrame = visualViewport.viewportToRootFrame(clippedRect.center()); |
} else { |
locationInRootFrame = IntPoint( |