Index: third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp |
diff --git a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp |
index 03c87db66d0ffa523f555f2536c7525d0da94594..f406ced3e1304ddc02adbb02d8250829c734aa54 100644 |
--- a/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp |
+++ b/third_party/WebKit/Source/core/animation/CSSPathInterpolationType.cpp |
@@ -7,13 +7,15 @@ |
#include "core/animation/PathInterpolationFunctions.h" |
#include "core/css/CSSPathValue.h" |
#include "core/css/resolver/StyleResolverState.h" |
+#include "wtf/PtrUtil.h" |
+#include <memory> |
namespace blink { |
void CSSPathInterpolationType::apply(const InterpolableValue& interpolableValue, const NonInterpolableValue* nonInterpolableValue, InterpolationEnvironment& environment) const |
{ |
ASSERT(cssProperty() == CSSPropertyD); |
- OwnPtr<SVGPathByteStream> pathByteStream = PathInterpolationFunctions::appliedValue(interpolableValue, nonInterpolableValue); |
+ std::unique_ptr<SVGPathByteStream> pathByteStream = PathInterpolationFunctions::appliedValue(interpolableValue, nonInterpolableValue); |
if (pathByteStream->isEmpty()) { |
environment.state().style()->setD(nullptr); |
return; |
@@ -38,9 +40,9 @@ InterpolationValue CSSPathInterpolationType::maybeConvertInitial(const StyleReso |
class ParentPathChecker : public InterpolationType::ConversionChecker { |
public: |
- static PassOwnPtr<ParentPathChecker> create(PassRefPtr<StylePath> stylePath) |
+ static std::unique_ptr<ParentPathChecker> create(PassRefPtr<StylePath> stylePath) |
{ |
- return adoptPtr(new ParentPathChecker(stylePath)); |
+ return wrapUnique(new ParentPathChecker(stylePath)); |
} |
private: |