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

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

Issue 440663003: DevTools: remove unused resizing strategy code paths, make it solely bounds-based. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extra layout removed. Created 6 years, 4 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: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 0116260850a6d33fb8bb7a6c85960f7519a22dd9..fe8cb5926a1efd60c91632c25b922c983b1f3bcc 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -2134,6 +2134,8 @@ void BrowserView::UpdateDevToolsForContents(
DevToolsContentsResizingStrategy());
}
contents_container_->Layout();
+ int order = !devtools || strategy.hide_inspected_contents() ? 0 : -1;
+ contents_container_->ReorderChildView(contents_web_view_, order);
sky 2014/08/04 17:01:25 Why do you need the reoder here?
}
void BrowserView::UpdateUIForContents(WebContents* contents) {
« no previous file with comments | « chrome/browser/ui/cocoa/dev_tools_controller.mm ('k') | chrome/browser/ui/views/frame/contents_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698