Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp

Issue 1460253002: SVGPath object "mutability" cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; byteStreamWillChange->byteStreamChanged; Drop some includes. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698