Index: third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp b/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp |
index f195fb0bfe4fed8915935f9bc8105ea8227cb95e..ce47d64780513cd80f009aa6aecd81b4ec79586e 100644 |
--- a/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/SVGTransformListInterpolationType.cpp |
@@ -175,13 +175,6 @@ const Vector<SVGTransformType>& getTransformTypes(const InterpolationValue& valu |
return toSVGTransformNonInterpolableValue(*value.nonInterpolableValue).transformTypes(); |
} |
-bool transformTypesMatch(const InterpolationValue& first, const InterpolationValue& second) |
-{ |
- const Vector<SVGTransformType>& firstTransformTypes = getTransformTypes(first); |
- const Vector<SVGTransformType>& secondTransformTypes = getTransformTypes(second); |
- return firstTransformTypes == secondTransformTypes; |
-} |
- |
class SVGTransformListChecker : public InterpolationType::ConversionChecker { |
public: |
static std::unique_ptr<SVGTransformListChecker> create(const InterpolationValue& underlying) |
@@ -288,7 +281,7 @@ SVGPropertyBase* SVGTransformListInterpolationType::appliedSVGValue(const Interp |
PairwiseInterpolationValue SVGTransformListInterpolationType::maybeMergeSingles(InterpolationValue&& start, InterpolationValue&& end) const |
{ |
- if (!transformTypesMatch(start, end)) |
+ if (getTransformTypes(start) != getTransformTypes(end)) |
return nullptr; |
return PairwiseInterpolationValue(std::move(start.interpolableValue), std::move(end.interpolableValue), end.nonInterpolableValue.release()); |