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) { |