summaryrefslogtreecommitdiffstats
path: root/ui/gfx/rect_f.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-10 05:24:19 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-10 05:24:19 +0000
commit685836bbb4799a9333821b431a7535b29391bd2e (patch)
treee594b61457e5a487267c6be0a039353f849548f3 /ui/gfx/rect_f.h
parentfc290d614c7fab02dcdaf88b992a0204be23aa90 (diff)
downloadchromium_src-685836bbb4799a9333821b431a7535b29391bd2e.zip
chromium_src-685836bbb4799a9333821b431a7535b29391bd2e.tar.gz
chromium_src-685836bbb4799a9333821b431a7535b29391bd2e.tar.bz2
ui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always.
This was added with the intention of using Size as a vector, replacing use of IntSize. Since we have Vector2d now, negative sizes should not exist, so clamp them in set_width/set_height and the constructor. R=sky BUG=160158 Review URL: https://codereview.chromium.org/11365160 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/rect_f.h')
-rw-r--r--ui/gfx/rect_f.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h
index 7595091..965e5af 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 new_size = size().Scale(x_scale, y_scale);
- new_size.ClampToNonNegative();
set_size(new_size);
}