Index: Source/core/svg/SVGPathUtilities.cpp |
diff --git a/Source/core/svg/SVGPathUtilities.cpp b/Source/core/svg/SVGPathUtilities.cpp |
index 0842fe8efc625314d576a7f170503d4b3dd6c4bb..1287ee70940003861a23d7d42dfce105f207c854 100644 |
--- a/Source/core/svg/SVGPathUtilities.cpp |
+++ b/Source/core/svg/SVGPathUtilities.cpp |
@@ -18,7 +18,6 @@ |
*/ |
#include "config.h" |
- |
#include "core/svg/SVGPathUtilities.h" |
#include "core/svg/SVGPathBlender.h" |
@@ -42,8 +41,8 @@ bool buildPathFromString(const String& d, Path& result) |
return true; |
SVGPathBuilder builder(result); |
- OwnPtrWillBeRawPtr<SVGPathStringSource> source = SVGPathStringSource::create(d); |
- SVGPathParser parser(source.get(), &builder); |
+ SVGPathStringSource source(d); |
+ SVGPathParser parser(&source, &builder); |
return parser.parsePathDataFromSource(NormalizedParsing); |
} |
@@ -81,8 +80,8 @@ bool buildSVGPathByteStreamFromString(const String& d, SVGPathByteStream& result |
result.reserveInitialCapacity(d.length()); |
SVGPathByteStreamBuilder builder(result); |
- OwnPtrWillBeRawPtr<SVGPathStringSource> source = SVGPathStringSource::create(d); |
- SVGPathParser parser(source.get(), &builder); |
+ SVGPathStringSource source(d); |
+ SVGPathParser parser(&source, &builder); |
bool ok = parser.parsePathDataFromSource(parsingMode); |
result.shrinkToFit(); |
return ok; |