Index: third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp |
index 4f504951cf0003a896d365afdcc888ea520ccb3c..3a55984b9c7617f863823e2f5efdb6867d5ce0ab 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSMotionRotationInterpolationType.cpp |
@@ -6,6 +6,8 @@ |
#include "core/css/resolver/StyleBuilderConverter.h" |
#include "core/style/StyleMotionRotation.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
@@ -37,9 +39,9 @@ namespace { |
class UnderlyingRotationTypeChecker : public InterpolationType::ConversionChecker { |
public: |
- static PassOwnPtr<UnderlyingRotationTypeChecker> create(MotionRotationType underlyingRotationType) |
+ static std::unique_ptr<UnderlyingRotationTypeChecker> create(MotionRotationType underlyingRotationType) |
{ |
- return adoptPtr(new UnderlyingRotationTypeChecker(underlyingRotationType)); |
+ return wrapUnique(new UnderlyingRotationTypeChecker(underlyingRotationType)); |
} |
bool isValid(const InterpolationEnvironment&, const InterpolationValue& underlying) const final |
@@ -57,9 +59,9 @@ private: |
class InheritedRotationTypeChecker : public InterpolationType::ConversionChecker { |
public: |
- static PassOwnPtr<InheritedRotationTypeChecker> create(MotionRotationType inheritedRotationType) |
+ static std::unique_ptr<InheritedRotationTypeChecker> create(MotionRotationType inheritedRotationType) |
{ |
- return adoptPtr(new InheritedRotationTypeChecker(inheritedRotationType)); |
+ return wrapUnique(new InheritedRotationTypeChecker(inheritedRotationType)); |
} |
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue& underlying) const final |