Index: content/browser/renderer_host/render_widget_host_view_base.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc |
index b3ee8539780b0668eda537ab3dfd30c00e5c312c..1c1972b6a2a0a9f888e857f8f246673c4d329d99 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_base.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_base.cc |
@@ -276,7 +276,7 @@ void RenderWidgetHostViewBase::UpdateScreenInfo(gfx::NativeView view) { |
bool RenderWidgetHostViewBase::HasDisplayPropertyChanged(gfx::NativeView view) { |
display::Display display = |
- display::Screen::GetScreen()->GetDisplayNearestWindow(view); |
+ display::Screen::GetScreen()->GetDisplayNearestView(view); |
if (current_display_area_ == display.work_area() && |
current_device_scale_factor_ == display.device_scale_factor() && |
current_display_rotation_ == display.rotation()) { |