Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Unified Diff: Source/web/PopupContainer.cpp

Issue 1109213002: Make createWindow (mostly) work with OOPIF (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix style, use FrameView::root Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/PopupContainer.cpp
diff --git a/Source/web/PopupContainer.cpp b/Source/web/PopupContainer.cpp
index 01bc2c8b875a85d107f1db65925528ee0034a094..49f536807da6043d1602322fb08dec49f2174413 100644
--- a/Source/web/PopupContainer.cpp
+++ b/Source/web/PopupContainer.cpp
@@ -200,7 +200,7 @@ IntRect PopupContainer::layoutAndCalculateWidgetRect(int targetControlHeight, co
IntRect widgetRectInScreen;
// If the popup would extend past the bottom of the screen, open upwards
// instead.
- IntRect screen = screenAvailableRect(m_frameView.get());
+ IntRect screen = m_frameView->root()->hostWindow() ? screenAvailableRect(*m_frameView->root()->hostWindow()) : IntRect();
// Use popupInitialCoordinate.x() + rightOffset because RTL position
// needs to be considered.
float pageScaleFactor = m_frameView->frame().page()->pageScaleFactor();

Powered by Google App Engine
This is Rietveld 408576698