Index: third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp |
index 4cf925d7891f4d170425dfa1d2678900808437a0..019fe0899bf15c9c1edaf561763a3922f43606e2 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSTextIndentInterpolationType.cpp |
@@ -9,6 +9,8 @@ |
#include "core/css/CSSValueList.h" |
#include "core/css/resolver/StyleResolverState.h" |
#include "core/style/ComputedStyle.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
@@ -63,9 +65,9 @@ namespace { |
class UnderlyingIndentModeChecker : public InterpolationType::ConversionChecker { |
public: |
- static PassOwnPtr<UnderlyingIndentModeChecker> create(const IndentMode& mode) |
+ static std::unique_ptr<UnderlyingIndentModeChecker> create(const IndentMode& mode) |
{ |
- return adoptPtr(new UnderlyingIndentModeChecker(mode)); |
+ return wrapUnique(new UnderlyingIndentModeChecker(mode)); |
} |
bool isValid(const InterpolationEnvironment&, const InterpolationValue& underlying) const final |
@@ -83,9 +85,9 @@ private: |
class InheritedIndentModeChecker : public InterpolationType::ConversionChecker { |
public: |
- static PassOwnPtr<InheritedIndentModeChecker> create(const IndentMode& mode) |
+ static std::unique_ptr<InheritedIndentModeChecker> create(const IndentMode& mode) |
{ |
- return adoptPtr(new InheritedIndentModeChecker(mode)); |
+ return wrapUnique(new InheritedIndentModeChecker(mode)); |
} |
bool isValid(const InterpolationEnvironment& environment, const InterpolationValue&) const final |