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

Unified Diff: content/browser/frame_host/cross_process_frame_connector.cc

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'anonymous'. Created 4 years, 8 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/frame_host/cross_process_frame_connector.cc
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc
index 1d2234570626fbc65fa2705d02cb4d5a6ac17e96..bb12f90fec4604afbf485d8bc66da9bb140599a1 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -195,6 +195,10 @@ void CrossProcessFrameConnector::OnForwardInputEvent(
void CrossProcessFrameConnector::OnFrameRectChanged(
const gfx::Rect& frame_rect) {
+ // TODO(wjmaclean) When changing the zoom of a WebView child without also
+ // changing the zoom of the embedder (e.g. using WebView.setZoom()), we
+ // shouldn't propagate this change in the frame rect. We need to find a way
+ // to detect when this happens. http://crbug.com/607978
if (!frame_rect.size().IsEmpty())
SetRect(frame_rect);
}

Powered by Google App Engine
This is Rietveld 408576698