diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 17:52:05 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 17:52:05 +0000 |
commit | 4234ab017a352322ec2badde8f8bd6183c37079b (patch) | |
tree | 658f9c8e8844e464240d1e9635bbb59ac6b145ac /base/gfx/rect.h | |
parent | 05d4b0ae3154d410443f5ac5d6f74c970ce8d700 (diff) | |
download | chromium_src-4234ab017a352322ec2badde8f8bd6183c37079b.zip chromium_src-4234ab017a352322ec2badde8f8bd6183c37079b.tar.gz chromium_src-4234ab017a352322ec2badde8f8bd6183c37079b.tar.bz2 |
The new version of Inset() Ben added a while ago didn't work quite right for rects whose origin wasn't (0,0). Fix this and reduce some redundancy.
Review URL: http://codereview.chromium.org/19457
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/rect.h')
-rw-r--r-- | base/gfx/rect.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/gfx/rect.h b/base/gfx/rect.h index 364b03b..362cd31 100644 --- a/base/gfx/rect.h +++ b/base/gfx/rect.h @@ -72,7 +72,9 @@ class Rect { void SetRect(int x, int y, int width, int height); // Shrink the rectangle by a horizontal and vertical distance on all sides. - void Inset(int horizontal, int vertical); + void Inset(int horizontal, int vertical) { + Inset(horizontal, vertical, horizontal, vertical); + } // Shrink the rectangle by the specified amount on each side. void Inset(int left, int top, int right, int bottom); |