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

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

Issue 11410024: ui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: negative-width Created 7 years, 11 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/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
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index c930eb75c2ca6a2e365fc99a45c91c7dc5b0effc..99239848104464c8f7b6513e0a5c196b8c120e30 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -90,7 +90,7 @@ void SuspendRenderViewHost(RenderViewHost* rvh) {
ShellWindow::CreateParams::CreateParams()
: window_type(ShellWindow::WINDOW_TYPE_DEFAULT),
frame(ShellWindow::FRAME_CHROME),
- bounds(INT_MIN, INT_MIN, INT_MIN, INT_MIN),
+ bounds(INT_MIN, INT_MIN, 0, 0),
creator_process_id(0), hidden(false) {
}
@@ -138,9 +138,9 @@ void ShellWindow::Init(const GURL& url,
gfx::Rect bounds = params.bounds;
- if (bounds.width() == INT_MIN)
+ if (bounds.width() == 0)
bounds.set_width(kDefaultWidth);
- if (bounds.height() == INT_MIN)
+ if (bounds.height() == 0)
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