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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 11359194: Revert 167255 - ui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « chrome/browser/ui/extensions/shell_window.h ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/extensions/shell_window.cc
===================================================================
--- chrome/browser/ui/extensions/shell_window.cc (revision 167502)
+++ chrome/browser/ui/extensions/shell_window.cc (working copy)
@@ -75,7 +75,7 @@
ShellWindow::CreateParams::CreateParams()
: frame(ShellWindow::CreateParams::FRAME_CHROME),
- bounds(INT_MIN, INT_MIN, 0, 0),
+ bounds(INT_MIN, INT_MIN, INT_MIN, INT_MIN),
restore_position(true), restore_size(true),
creator_process_id(0), hidden(false) {
}
@@ -122,9 +122,9 @@
gfx::Rect bounds = params.bounds;
- if (bounds.width() == 0)
+ if (bounds.width() == INT_MIN)
bounds.set_width(kDefaultWidth);
- if (bounds.height() == 0)
+ if (bounds.height() == INT_MIN)
bounds.set_height(kDefaultHeight);
// If left and top are left undefined, the native shell window will center
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.h ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698