summaryrefslogtreecommitdiffstats
path: root/ui/gfx/size_f.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 03:51:36 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 03:51:36 +0000
commit62c607121a2c0b5bf463cd6da0fd568140523e30 (patch)
treee99d2d69b958590be8a1afa65065d76d97a3a025 /ui/gfx/size_f.cc
parent55b4f27b45cf6a09f0f29222efef8f561a0733c7 (diff)
downloadchromium_src-62c607121a2c0b5bf463cd6da0fd568140523e30.zip
chromium_src-62c607121a2c0b5bf463cd6da0fd568140523e30.tar.gz
chromium_src-62c607121a2c0b5bf463cd6da0fd568140523e30.tar.bz2
ui: Prevent negative sizes.
Negative sizes are clamped to be 0, but keeping the setter methods inline, so without DCHECKs. TBR=sky BUG=160158 Relanding https://codereview.chromium.org/11365160/ in pieces. Review URL: https://chromiumcodereview.appspot.com/12042029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/size_f.cc')
-rw-r--r--ui/gfx/size_f.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/gfx/size_f.cc b/ui/gfx/size_f.cc
index 69e0ee9..cbdae03 100644
--- a/ui/gfx/size_f.cc
+++ b/ui/gfx/size_f.cc
@@ -4,7 +4,6 @@
#include "ui/gfx/size_f.h"
-#include "base/logging.h"
#include "base/stringprintf.h"
namespace gfx {