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

Unified Diff: chrome/browser/ui/views/frame/contents_layout_manager.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: for landing 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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/contents_layout_manager.cc
diff --git a/chrome/browser/ui/views/frame/contents_layout_manager.cc b/chrome/browser/ui/views/frame/contents_layout_manager.cc
index 4aa51bd1b2696b0c81763de45a3d40d7ae028672..0e9fcb9653e137bacdae115a0729224c0c792b70 100644
--- a/chrome/browser/ui/views/frame/contents_layout_manager.cc
+++ b/chrome/browser/ui/views/frame/contents_layout_manager.cc
@@ -45,15 +45,10 @@ void ContentsLayoutManager::Layout(views::View* contents_container) {
int width = contents_container->width();
gfx::Size container_size(width, height);
- gfx::Rect old_devtools_bounds(devtools_view_->bounds());
- gfx::Rect old_contents_bounds(contents_view_->bounds());
gfx::Rect new_devtools_bounds;
gfx::Rect new_contents_bounds;
- old_devtools_bounds.Offset(0, -top);
- old_contents_bounds.Offset(0, -top);
ApplyDevToolsContentsResizingStrategy(strategy_, container_size,
- old_devtools_bounds, old_contents_bounds,
&new_devtools_bounds, &new_contents_bounds);
new_devtools_bounds.Offset(0, top);
new_contents_bounds.Offset(0, top);
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698