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()); |