Index: third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp |
diff --git a/third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp b/third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp |
index faec714bc5ed886d48b6e0f8590fa8ed31e808e8..dce4bd134898743489fd7097b54bd8006ccad698 100644 |
--- a/third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp |
+++ b/third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp |
@@ -433,12 +433,12 @@ PassRefPtr<PathSVGInterpolation> PathSVGInterpolation::maybeCreate(SVGPropertyBa |
PassRefPtrWillBeRawPtr<SVGPropertyBase> PathSVGInterpolation::fromInterpolableValue(const InterpolableValue& value, const Vector<SVGPathSegType>& pathSegTypes) |
{ |
- RefPtrWillBeRawPtr<SVGPath> result = SVGPath::create(); |
+ OwnPtr<SVGPathByteStream> pathByteStream = SVGPathByteStream::create(); |
InterpolatedPathSource source(toInterpolableList(value), pathSegTypes); |
- SVGPathByteStreamBuilder builder(result->mutableByteStream()); |
+ SVGPathByteStreamBuilder builder(*pathByteStream); |
SVGPathParser parser(&source, &builder); |
parser.parsePathDataFromSource(UnalteredParsing, false); |
- return result.release(); |
+ return SVGPath::create(pathByteStream.release()); |
} |
PassRefPtrWillBeRawPtr<SVGPropertyBase> PathSVGInterpolation::interpolatedValue(SVGElement&) const |