diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-26 22:10:13 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-26 22:10:13 +0000 |
commit | be36adf48521bae3965b79a852501c696413f133 (patch) | |
tree | 0458f2785af75473570b2604431e3f77b7cd9d88 /base/gfx/rect.h | |
parent | b50ed4828c28ac9b4baad3801a1f9938e913d289 (diff) | |
download | chromium_src-be36adf48521bae3965b79a852501c696413f133.zip chromium_src-be36adf48521bae3965b79a852501c696413f133.tar.gz chromium_src-be36adf48521bae3965b79a852501c696413f133.tar.bz2 |
Change Size::IsEmpty() to be consistent with Rect::IsEmpty()
Change Size to not accept negative dimensions to be consistent with Rect.
BUG=10992
TEST=base_unittests.exe --gtest_filter=RectTest.IsEmpty
Review URL: http://codereview.chromium.org/93131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14567 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/rect.h')
-rwxr-xr-x | base/gfx/rect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gfx/rect.h b/base/gfx/rect.h index 21083b2..16c16c1 100755 --- a/base/gfx/rect.h +++ b/base/gfx/rect.h @@ -86,7 +86,7 @@ class Rect { } // Returns true if the area of the rectangle is zero. - bool IsEmpty() const; + bool IsEmpty() const { return size_.IsEmpty(); } bool operator==(const Rect& other) const; |