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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2916703002: Force resize event to be sent to OOPIF subframes when main frame resizes. (Closed)
Patch Set: add comment Created 3 years, 6 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 | « content/browser/screen_orientation/screen_orientation_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index d96814515a88d7f2fa6fec2e54d0288d5af9c00f..ef3df07a00fa46e42d3c5b07343d4f42d20d2c89 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1881,6 +1881,12 @@ void WebContentsImpl::RenderWidgetWasResized(
GetScreenInfo(&screen_info);
SendPageMessage(new PageMsg_UpdateScreenInfo(MSG_ROUTING_NONE, screen_info));
+ // Send resize message to subframes.
+ for (RenderWidgetHostView* view : GetRenderWidgetHostViewsInTree()) {
+ if (view != rfh->GetView())
+ view->GetRenderWidgetHost()->WasResized();
+ }
+
for (auto& observer : observers_)
observer.MainFrameWasResized(width_changed);
}
« no previous file with comments | « content/browser/screen_orientation/screen_orientation_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698