| Index: ui/gfx/rect.cc
|
| diff --git a/ui/gfx/rect.cc b/ui/gfx/rect.cc
|
| index d52332a119359b5e86f6d63a2ac4d448ae0dbd41..0fe38131de3e327a6f7f3ddb8201780f1b683600 100644
|
| --- a/ui/gfx/rect.cc
|
| +++ b/ui/gfx/rect.cc
|
| @@ -90,6 +90,18 @@ std::string Rect::ToString() const {
|
| size().ToString().c_str());
|
| }
|
|
|
| +Rect operator+(const Rect& lhs, const Vector2d& rhs) {
|
| + Rect result(lhs);
|
| + result += rhs;
|
| + return result;
|
| +}
|
| +
|
| +Rect operator-(const Rect& lhs, const Vector2d& rhs) {
|
| + Rect result(lhs);
|
| + result -= rhs;
|
| + return result;
|
| +}
|
| +
|
| Rect IntersectRects(const Rect& a, const Rect& b) {
|
| Rect result = a;
|
| result.Intersect(b);
|
|
|