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

Unified Diff: Source/core/svg/SVGPathTraversalStateBuilder.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.h ('k') | Source/core/svg/SVGPathUtilities.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathTraversalStateBuilder.cpp
diff --git a/Source/core/svg/SVGPathTraversalStateBuilder.cpp b/Source/core/svg/SVGPathTraversalStateBuilder.cpp
index 1262d4996b7fcd3a28560a20e52cda9d5fdc26a1..b1bb11ac3062de2796631f3065e84013aadda6b0 100644
--- a/Source/core/svg/SVGPathTraversalStateBuilder.cpp
+++ b/Source/core/svg/SVGPathTraversalStateBuilder.cpp
@@ -21,14 +21,13 @@
*/
#include "config.h"
-#include "platform/graphics/PathTraversalState.h"
-
#include "core/svg/SVGPathTraversalStateBuilder.h"
namespace blink {
-SVGPathTraversalStateBuilder::SVGPathTraversalStateBuilder(PathTraversalState& traversalState, float desiredLength)
- : m_traversalState(traversalState)
+SVGPathTraversalStateBuilder::SVGPathTraversalStateBuilder(PathTraversalState::PathTraversalAction traversalAction, float desiredLength)
+ : m_traversalState(traversalAction)
+ , m_segmentIndex(0)
{
m_traversalState.m_desiredLength = desiredLength;
}
@@ -61,12 +60,7 @@ bool SVGPathTraversalStateBuilder::continueConsuming()
void SVGPathTraversalStateBuilder::incrementPathSegmentCount()
{
- ++m_traversalState.m_segmentIndex;
-}
-
-unsigned SVGPathTraversalStateBuilder::pathSegmentIndex()
-{
- return m_traversalState.m_segmentIndex;
+ ++m_segmentIndex;
}
float SVGPathTraversalStateBuilder::totalLength()
« no previous file with comments | « Source/core/svg/SVGPathTraversalStateBuilder.h ('k') | Source/core/svg/SVGPathUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698