Index: Source/web/PopupContainer.cpp |
diff --git a/Source/web/PopupContainer.cpp b/Source/web/PopupContainer.cpp |
index 592dc0654f32a40d040cf4be3e0e254e402b0f0a..d46bbbce4a20a885fbf589401a3fa01aeb3a0ed6 100644 |
--- a/Source/web/PopupContainer.cpp |
+++ b/Source/web/PopupContainer.cpp |
@@ -206,7 +206,7 @@ IntRect PopupContainer::layoutAndCalculateWidgetRect(int targetControlHeight, co |
float pageScaleFactor = m_frameView->frame().page()->pageScaleFactor(); |
int popupX = round((popupInitialCoordinate.x() + rightOffset) * pageScaleFactor); |
int popupY = round((popupInitialCoordinate.y() + verticalForRTLOffset) * pageScaleFactor); |
- widgetRectInScreen = chromeClient().rootViewToScreen(IntRect(popupX, popupY, targetSize.width(), targetSize.height())); |
+ widgetRectInScreen = chromeClient().viewportToScreen(IntRect(popupX, popupY, targetSize.width(), targetSize.height())); |
// If we have multiple screens and the browser rect is in one screen, we |
// have to clip the window width to the screen width. |