summaryrefslogtreecommitdiffstats
path: root/ui/ui.gyp
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-12 23:04:30 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-12 23:04:30 +0000
commit14872d53f89d423ac7bfc258c3278134f379bf1c (patch)
treecf3e0036631ac1e09ee61b3fe2d53e55601e3a3c /ui/ui.gyp
parent942e7bb132d9073c9273c04243ac2dae4283f7fd (diff)
downloadchromium_src-14872d53f89d423ac7bfc258c3278134f379bf1c.zip
chromium_src-14872d53f89d423ac7bfc258c3278134f379bf1c.tar.gz
chromium_src-14872d53f89d423ac7bfc258c3278134f379bf1c.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. Not covered by tests, as we can't test DCHECKs. TBR=sky BUG=160158 Relanding: https://codereview.chromium.org/11365160/ Review URL: https://codereview.chromium.org/11410024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167255 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ui.gyp')
-rw-r--r--ui/ui.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ui.gyp b/ui/ui.gyp
index be9b69a..c003637 100644
--- a/ui/ui.gyp
+++ b/ui/ui.gyp
@@ -496,6 +496,7 @@
'gfx/size.cc',
'gfx/size.h',
'gfx/size_base.h',
+ 'gfx/size_base_impl.h',
'gfx/size_conversions.cc',
'gfx/size_conversions.h',
'gfx/size_f.cc',