| Index: Source/web/PopupContainer.cpp
|
| diff --git a/Source/web/PopupContainer.cpp b/Source/web/PopupContainer.cpp
|
| index 251c77b9f31ad0d0a67d3db33d71e079b5923cdb..d1d49f5b089d8e1bdb7275b70487697e34538393 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.
|
|
|