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

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

Issue 11066130: Fix for out-of-sync scale factor issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use API that exists on 23 Created 8 years, 2 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
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index d6f200f19d742ea534f2dd79bfd34bc8adfd5836..1b2a20ce56329dc4d8e88fde7d8d2ec2c75d3ef2 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1109,6 +1109,13 @@ void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
}
void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) {
+#if defined(USE_AURA)
+ // Send secreen info as well because JavaScript API |window.open|
+ // uses screen info to determine the scale factor (crbug.com/155201).
+ // TODO(oshima|thakis): Consolidate SetDeviceScaleFactor and
+ // ScreenInfoChanged. crbug.com/155213.
+ NotifyScreenInfoChanged();
+#endif
Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale));
}
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698