Index: ui/gfx/rect_f.h |
diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h |
index a86ac9e4c669aa4a0eafca5a2dda36eb538b5032..c9310194c34ffe23bd6f5c14a8a45cd2ed55e617 100644 |
--- a/ui/gfx/rect_f.h |
+++ b/ui/gfx/rect_f.h |
@@ -58,6 +58,13 @@ inline bool operator!=(const RectF& lhs, const RectF& rhs) { |
return !(lhs == rhs); |
} |
+UI_EXPORT RectF operator+(const RectF& lhs, const Vector2dF& rhs); |
+UI_EXPORT RectF operator-(const RectF& lhs, const Vector2dF& rhs); |
+ |
+inline RectF operator+(const Vector2dF& lhs, const RectF& rhs) { |
+ return rhs + lhs; |
+} |
+ |
UI_EXPORT RectF IntersectRects(const RectF& a, const RectF& b); |
UI_EXPORT RectF UnionRects(const RectF& a, const RectF& b); |
UI_EXPORT RectF SubtractRects(const RectF& a, const RectF& b); |