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

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: Fix test compile. 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 b5e415ced16124ab9c7b22272546a422fa03fedb..d5b87fc3095f66b29d4d660894355aaa4825a157 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -199,8 +199,13 @@ void CrossProcessFrameConnector::OnForwardInputEvent(
void CrossProcessFrameConnector::OnFrameRectChanged(
const gfx::Rect& frame_rect) {
- if (!frame_rect.size().IsEmpty())
+ // Don't propagate these messages to WebViews.
+ if (!frame_rect.size().IsEmpty() &&
+ !frame_proxy_in_parent_renderer_->frame_tree_node()
+ ->render_manager()
+ ->ForInnerDelegate()) {
SetRect(frame_rect);
+ }
}
void CrossProcessFrameConnector::OnVisibilityChanged(bool visible) {

Powered by Google App Engine
This is Rietveld 408576698