Index: third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp b/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp |
index 781ccc1f6d606e921424e537d63332411d0afdf5..10969e12369f813e18fee2c1787079da3769ce82 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp |
@@ -5,7 +5,6 @@ |
#include "platform/graphics/ColorBehavior.h" |
#include "platform/graphics/BitmapImageMetrics.h" |
-#include "third_party/skia/include/core/SkColorSpace.h" |
#include "wtf/SpinLock.h" |
namespace blink { |
@@ -66,4 +65,16 @@ ColorBehavior ColorBehavior::transformToTargetForTesting() { |
return transformToGlobalTarget(); |
} |
+bool ColorBehavior::operator==(const ColorBehavior& other) const { |
+ if (m_type != other.m_type) |
+ return false; |
+ if (m_type != Type::TransformTo) |
+ return true; |
+ return SkColorSpace::Equals(m_target.get(), other.m_target.get()); |
+} |
+ |
+bool ColorBehavior::operator!=(const ColorBehavior& other) const { |
+ return !(*this == other); |
+} |
+ |
} // namespace blink |