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

Unified Diff: ui/gfx/rect_f.h

Issue 11365160: ui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test 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 | « no previous file | ui/gfx/size_base.h » ('j') | ui/gfx/size_base.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_f.h
diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h
index a86ac9e4c669aa4a0eafca5a2dda36eb538b5032..f4d9bca0f02cb78027d3a48bb21adfbec5a364bc 100644
--- a/ui/gfx/rect_f.h
+++ b/ui/gfx/rect_f.h
@@ -37,7 +37,6 @@ class UI_EXPORT RectF
set_origin(ScalePoint(origin(), x_scale, y_scale));
SizeF newSize = size().Scale(x_scale, y_scale);
sky 2012/11/09 17:03:55 newSize -> new_size
danakj 2012/11/09 17:06:57 Done.
- newSize.ClampToNonNegative();
set_size(newSize);
}
« no previous file with comments | « no previous file | ui/gfx/size_base.h » ('j') | ui/gfx/size_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698