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

Unified Diff: content/browser/renderer_host/dip_util.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: add missing files Created 3 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: content/browser/renderer_host/dip_util.cc
diff --git a/content/browser/renderer_host/dip_util.cc b/content/browser/renderer_host/dip_util.cc
index 3d20622eaaad194331d466e4e4212e7de972ad73..8b9e4f66eb5d0d93321994640a5684f0cf49ec98 100644
--- a/content/browser/renderer_host/dip_util.cc
+++ b/content/browser/renderer_host/dip_util.cc
@@ -17,7 +17,7 @@
namespace content {
float GetScaleFactorForView(const RenderWidgetHostView* view) {
- return ui::GetScaleFactorForNativeView(view ? view->GetNativeView() : NULL);
+ return view ? view->GetScaleFactorForNativeView() : 1.f;
}
gfx::Point ConvertViewPointToDIP(const RenderWidgetHostView* view,

Powered by Google App Engine
This is Rietveld 408576698