summaryrefslogtreecommitdiffstats
path: root/base/gfx/rect.h
diff options
context:
space:
mode:
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;