Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index cfaed2aac58f36451173a28c3b0f20ff30405666..b8c999c3052819ad7809b021a123aceaa2381f39 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -666,7 +666,8 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh, |
prefs.max_untiled_layer_height = |
GetSwitchValueAsInt(command_line, switches::kMaxUntiledLayerHeight, 1); |
- if (gfx::Screen::IsDIPEnabled()) { |
+ // TODO(scottmg): Probably Native is wrong: http://crbug.com/133312 |
+ if (gfx::Screen::GetNativeScreen()->IsDIPEnabled()) { |
// Only apply when using DIP coordinate system as this setting interferes |
// with fixed layout mode. |
prefs.apply_default_device_scale_factor_in_compositor = true; |