| Index: ui/gfx/size.h
|
| diff --git a/ui/gfx/size.h b/ui/gfx/size.h
|
| index a2cdf3eb4314257a0b0d03469738053214fe4195..4425207a18fa4b25b3a8bb433a4bd7b9da9940a8 100644
|
| --- a/ui/gfx/size.h
|
| +++ b/ui/gfx/size.h
|
| @@ -43,7 +43,7 @@ class UI_EXPORT Size : public SizeBase<Size, int> {
|
| CGSize ToCGSize() const;
|
| #endif
|
|
|
| - SizeF ToSizeF() const {
|
| + operator SizeF() const {
|
| return SizeF(width(), height());
|
| }
|
|
|
| @@ -58,6 +58,14 @@ class UI_EXPORT Size : public SizeBase<Size, int> {
|
| std::string ToString() const;
|
| };
|
|
|
| +inline bool operator==(const Size& lhs, const Size& rhs) {
|
| + return lhs.width() == rhs.width() && lhs.height() == rhs.height();
|
| +}
|
| +
|
| +inline bool operator!=(const Size& lhs, const Size& rhs) {
|
| + return !(lhs == rhs);
|
| +}
|
| +
|
| #if !defined(COMPILER_MSVC)
|
| extern template class SizeBase<Size, int>;
|
| #endif
|
|
|