Index: ui/gfx/size_f.h |
diff --git a/ui/gfx/size_f.h b/ui/gfx/size_f.h |
index f3ad7dbed9904aebb1aa9a1b52bba16623ef19ad..f9ac6bd890e5b5ab7ec4e7d4c880a5c7f4fef84b 100644 |
--- a/ui/gfx/size_f.h |
+++ b/ui/gfx/size_f.h |
@@ -30,6 +30,14 @@ class UI_EXPORT SizeF : public SizeBase<SizeF, float> { |
std::string ToString() const; |
}; |
+inline bool operator==(const SizeF& lhs, const SizeF& rhs) { |
+ return lhs.width() == rhs.width() && lhs.height() == rhs.height(); |
+} |
+ |
+inline bool operator!=(const SizeF& lhs, const SizeF& rhs) { |
+ return !(lhs == rhs); |
+} |
+ |
#if !defined(COMPILER_MSVC) |
extern template class SizeBase<SizeF, float>; |
#endif |