Index: third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
index 1c4bb4ee42ddd4cfe8af159d2b9390ded92468eb..8ff23f43e93edcb4384d077805b7db0a9e7dd758 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSScaleInterpolationType.cpp |
@@ -7,6 +7,8 @@ |
#include "core/css/CSSPrimitiveValue.h" |
#include "core/css/CSSValueList.h" |
#include "core/css/resolver/StyleResolverState.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
@@ -37,9 +39,9 @@ struct Scale { |
array[2] = z; |
} |
- PassOwnPtr<InterpolableValue> createInterpolableValue() const |
+ std::unique_ptr<InterpolableValue> createInterpolableValue() const |
{ |
- OwnPtr<InterpolableList> result = InterpolableList::create(3); |
+ std::unique_ptr<InterpolableList> result = InterpolableList::create(3); |
for (size_t i = 0; i < 3; i++) |
result->set(i, InterpolableNumber::create(array[i])); |
return std::move(result); |
@@ -59,9 +61,9 @@ struct Scale { |
class ParentScaleChecker : public InterpolationType::ConversionChecker { |
public: |
- static PassOwnPtr<ParentScaleChecker> create(const Scale& scale) |
+ static std::unique_ptr<ParentScaleChecker> create(const Scale& scale) |
{ |
- return adoptPtr(new ParentScaleChecker(scale)); |
+ return wrapUnique(new ParentScaleChecker(scale)); |
} |
private: |