summaryrefslogtreecommitdiffstats
path: root/base/gfx/rect.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 20:15:08 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 20:15:08 +0000
commit9f9e76fa2c9cefbe3d4a0a1d4df20cf377da8cc1 (patch)
treeaad711fa986e088df15239c7e04d02f946a176d3 /base/gfx/rect.h
parent3c0a279277f1221448ae6ebcd8a3b1e1bf090fd7 (diff)
downloadchromium_src-9f9e76fa2c9cefbe3d4a0a1d4df20cf377da8cc1.zip
chromium_src-9f9e76fa2c9cefbe3d4a0a1d4df20cf377da8cc1.tar.gz
chromium_src-9f9e76fa2c9cefbe3d4a0a1d4df20cf377da8cc1.tar.bz2
part one of bustage fix - forgot to land this with previous CL. http://crbug.com/2186
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/rect.h')
-rw-r--r--base/gfx/rect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/gfx/rect.h b/base/gfx/rect.h
index ac730bd..364b03b 100644
--- a/base/gfx/rect.h
+++ b/base/gfx/rect.h
@@ -79,6 +79,9 @@ class Rect {
// Move the rectangle by a horizontal and vertical distance.
void Offset(int horizontal, int vertical);
+ void Offset(const gfx::Point& point) {
+ Offset(point.x(), point.y());
+ }
// Returns true if the area of the rectangle is zero.
bool IsEmpty() const;