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

Unified Diff: chrome/browser/ui/panels/panel.cc

Issue 8772029: Reunite PanelStrip::AddPanel and its internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | chrome/browser/ui/panels/panel_strip.h » ('j') | chrome/browser/ui/panels/panel_strip.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index 5bcab6c969788442fbc6d0a98affc2d27d6fea95..2b60cfcf96ff678e6f18068f3efc1821a34374ac 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -95,6 +95,9 @@ void Panel::SetAutoResizable(bool resizable) {
}
void Panel::SetSizeRange(const gfx::Size& min_size, const gfx::Size& max_size) {
+ if (min_size == min_size_ && max_size == max_size_)
+ return;
+
DCHECK(min_size.width() <= max_size.width());
DCHECK(min_size.height() <= max_size.height());
min_size_ = min_size;
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_strip.h » ('j') | chrome/browser/ui/panels/panel_strip.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698