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

Unified Diff: content/browser/web_contents/web_contents_view_mac.mm

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: Created 3 years, 9 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: content/browser/web_contents/web_contents_view_mac.mm
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm
index b2366393bad700944ddbf977d318b1b59455f8e7..c4043da2d9b12fa520b23bc48b2b4ece19e1d0b4 100644
--- a/content/browser/web_contents/web_contents_view_mac.mm
+++ b/content/browser/web_contents/web_contents_view_mac.mm
@@ -85,7 +85,7 @@ WebContentsViewMac::RenderWidgetHostViewCreateFunction
content::ScreenInfo GetNSViewScreenInfo(NSView* view) {
display::Display display =
- display::Screen::GetScreen()->GetDisplayNearestWindow(view);
+ display::Screen::GetScreen()->GetDisplayNearestView(view);
content::ScreenInfo results;
results.device_scale_factor = static_cast<int>(display.device_scale_factor());

Powered by Google App Engine
This is Rietveld 408576698