| Index: Source/web/PopupContainer.cpp
|
| diff --git a/Source/web/PopupContainer.cpp b/Source/web/PopupContainer.cpp
|
| index 49f536807da6043d1602322fb08dec49f2174413..01bc2c8b875a85d107f1db65925528ee0034a094 100644
|
| --- a/Source/web/PopupContainer.cpp
|
| +++ b/Source/web/PopupContainer.cpp
|
| @@ -200,7 +200,7 @@
|
| IntRect widgetRectInScreen;
|
| // If the popup would extend past the bottom of the screen, open upwards
|
| // instead.
|
| - IntRect screen = m_frameView->root()->hostWindow() ? screenAvailableRect(*m_frameView->root()->hostWindow()) : IntRect();
|
| + IntRect screen = screenAvailableRect(m_frameView.get());
|
| // Use popupInitialCoordinate.x() + rightOffset because RTL position
|
| // needs to be considered.
|
| float pageScaleFactor = m_frameView->frame().page()->pageScaleFactor();
|
|
|