diff options
-rw-r--r-- | base/gfx/rect.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/gfx/rect.cc b/base/gfx/rect.cc index fa81023..c86aa42 100644 --- a/base/gfx/rect.cc +++ b/base/gfx/rect.cc @@ -44,6 +44,10 @@ Rect::Rect(int x, int y, int width, int height) set_height(height); } +Rect::Rect(const gfx::Point& origin, const gfx::Size& size) + : origin_(origin), size_(size) { +} + #if defined(OS_WIN) Rect::Rect(const RECT& r) : origin_(r.left, r.top) { @@ -237,4 +241,3 @@ Point Rect::CenterPoint() const { } } // namespace gfx - |