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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 11193053: Fix extraneous resizing of main WebContents when switching between tabs with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
===================================================================
--- chrome/browser/ui/views/frame/browser_view.cc (revision 162437)
+++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
@@ -2536,10 +2536,13 @@
search_view_controller_->SetTabContents(new_contents);
#endif
+ // Layout for DevTools _before_ setting the main WebContents to avoid
+ // toggling the size of the main WebContents.
+ UpdateDevToolsForContents(new_contents);
+
if (change_tab_contents)
contents_container_->SetWebContents(new_contents->web_contents());
- UpdateDevToolsForContents(new_contents);
if (!browser_->tab_strip_model()->closing_all() && GetWidget()->IsActive() &&
GetWidget()->IsVisible()) {
// We only restore focus if our window is visible, to avoid invoking blur
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698