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

Unified Diff: Source/web/PopupContainer.cpp

Issue 919423002: Audited and renamed uses of methods and variables named RootView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fix Created 5 years, 10 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 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.

Powered by Google App Engine
This is Rietveld 408576698