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

Unified Diff: content/renderer/render_view_impl.cc

Issue 1546603003: Ensure zoom level is not updated if main frame is WebRemoteFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « content/renderer/render_view_impl.h ('k') | content/shell/renderer/layout_test/leak_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index e0a78f13cc0cfa418f7a77d94a49778acbb02e1f..47c4b0c24721a2f7bdb23a34749e925568fc7a2a 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3722,6 +3722,9 @@ void RenderViewImpl::DidStopLoadingIcons() {
void RenderViewImpl::UpdateWebViewWithDeviceScaleFactor() {
if (!webview())
return;
+ if (webview()->mainFrame()->isWebRemoteFrame())
dcheng 2015/12/22 18:27:36 Is this a temporary workaround? Or is this one of
nasko 2015/12/22 18:31:06 The whole zoom feature needs to be updated for out
dcheng 2015/12/22 18:35:13 Maybe add a TODO to that effect?
+ return;
+
if (IsUseZoomForDSFEnabled()) {
webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_);
} else {
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/shell/renderer/layout_test/leak_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698