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

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

Issue 1015833004: Move PathTraversalState::m_segmentIndex to SVGPathTraversalStateBuilder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move ownership of PathTraversalState Created 5 years, 9 months 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/SVGPathTraversalStateBuilder.cpp ('k') | Source/platform/graphics/PathTraversalState.h » ('j') | 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 1b36f6706223ecbdb2a1830dd431f09cf32c0dce..8b14d78c1e936d70e35a3a9e3cac983d0894bc75 100644
--- a/Source/core/svg/SVGPathUtilities.cpp
+++ b/Source/core/svg/SVGPathUtilities.cpp
@@ -107,8 +107,7 @@ unsigned getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream& str
if (stream.isEmpty())
return 0;
- PathTraversalState traversalState(PathTraversalState::TraversalSegmentAtLength);
- SVGPathTraversalStateBuilder builder(traversalState, length);
+ SVGPathTraversalStateBuilder builder(PathTraversalState::TraversalSegmentAtLength, length);
SVGPathByteStreamSource source(stream);
SVGPathParser parser(&source, &builder);
parser.parsePathDataFromSource(NormalizedParsing);
@@ -120,8 +119,7 @@ float getTotalLengthOfSVGPathByteStream(const SVGPathByteStream& stream)
if (stream.isEmpty())
return 0;
- PathTraversalState traversalState(PathTraversalState::TraversalTotalLength);
- SVGPathTraversalStateBuilder builder(traversalState);
+ SVGPathTraversalStateBuilder builder(PathTraversalState::TraversalTotalLength);
SVGPathByteStreamSource source(stream);
SVGPathParser parser(&source, &builder);
parser.parsePathDataFromSource(NormalizedParsing);
@@ -133,8 +131,7 @@ FloatPoint getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream& stream,
if (stream.isEmpty())
return FloatPoint();
- PathTraversalState traversalState(PathTraversalState::TraversalPointAtLength);
- SVGPathTraversalStateBuilder builder(traversalState, length);
+ SVGPathTraversalStateBuilder builder(PathTraversalState::TraversalPointAtLength, length);
SVGPathByteStreamSource source(stream);
SVGPathParser parser(&source, &builder);
parser.parsePathDataFromSource(NormalizedParsing);
« no previous file with comments | « Source/core/svg/SVGPathTraversalStateBuilder.cpp ('k') | Source/platform/graphics/PathTraversalState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698