| Index: ui/gfx/rect_f.h
|
| diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h
|
| index 4395b523a00fa26f864801e4652e108705fe475f..fbdeb4e157a0c6551550fdf4b7af6c6e06fe110c 100644
|
| --- a/ui/gfx/rect_f.h
|
| +++ b/ui/gfx/rect_f.h
|
| @@ -40,6 +40,14 @@ class UI_EXPORT RectF : public RectBase<RectF, PointF, SizeF, InsetsF, float> {
|
| std::string ToString() const;
|
| };
|
|
|
| +inline bool operator==(const RectF& lhs, const RectF& rhs) {
|
| + return lhs.origin() == rhs.origin() && lhs.size() == rhs.size();
|
| +}
|
| +
|
| +inline bool operator!=(const RectF& lhs, const RectF& rhs) {
|
| + return !(lhs == rhs);
|
| +}
|
| +
|
| #if !defined(COMPILER_MSVC)
|
| extern template class RectBase<RectF, PointF, SizeF, InsetsF, float>;
|
| #endif
|
|
|