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

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

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minimizes render_view_impl changes and introduces a defaultDeviceScaleFactor argument Created 8 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/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 12bcda166ad2f91c5156c3e8900d717ac7da7470..cb3c460eb8b2fbfb087d58e0e9255bd3974dad2f 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1093,4 +1093,6 @@ void RenderWidgetHostView::GetDefaultScreenInfo(
// TODO(derat): Don't hardcode this?
results->depth = 24;
results->depthPerComponent = 8;
+ results->verticalDPI = 96;
+ results->horizontalDPI = 96;
}

Powered by Google App Engine
This is Rietveld 408576698