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

Unified Diff: Source/core/svg/SVGPathUtilities.cpp

Issue 760603002: Allow SVGPathStringSource to be allocated on the stack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/svg/SVGPathStringSource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/svg/SVGPathStringSource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698