| Index: third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp b/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
|
| index c7a26df7a65a41762984e28c7f2e84989a565c64..e29200792cc45342dc0fc5f3d16bdb8a55fd5f2a 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
|
| @@ -26,8 +26,6 @@
|
| #include "core/svg/SVGPathParser.h"
|
| #include "core/svg/SVGPathStringBuilder.h"
|
| #include "core/svg/SVGPathStringSource.h"
|
| -#include "core/svg/SVGPathTraversalStateBuilder.h"
|
| -#include "platform/graphics/PathTraversalState.h"
|
|
|
| namespace blink {
|
|
|
| @@ -82,40 +80,4 @@ bool buildByteStreamFromString(const String& d, SVGPathByteStream& result)
|
| return ok;
|
| }
|
|
|
| -unsigned getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream& stream, float length)
|
| -{
|
| - if (stream.isEmpty())
|
| - return 0;
|
| -
|
| - SVGPathTraversalStateBuilder builder(PathTraversalState::TraversalSegmentAtLength, length);
|
| - SVGPathByteStreamSource source(stream);
|
| - SVGPathParser parser(&source, &builder);
|
| - parser.parsePathDataFromSource(NormalizedParsing);
|
| - return builder.pathSegmentIndex();
|
| -}
|
| -
|
| -float getTotalLengthOfSVGPathByteStream(const SVGPathByteStream& stream)
|
| -{
|
| - if (stream.isEmpty())
|
| - return 0;
|
| -
|
| - SVGPathTraversalStateBuilder builder(PathTraversalState::TraversalTotalLength);
|
| - SVGPathByteStreamSource source(stream);
|
| - SVGPathParser parser(&source, &builder);
|
| - parser.parsePathDataFromSource(NormalizedParsing);
|
| - return builder.totalLength();
|
| -}
|
| -
|
| -FloatPoint getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream& stream, float length)
|
| -{
|
| - if (stream.isEmpty())
|
| - return FloatPoint();
|
| -
|
| - SVGPathTraversalStateBuilder builder(PathTraversalState::TraversalPointAtLength, length);
|
| - SVGPathByteStreamSource source(stream);
|
| - SVGPathParser parser(&source, &builder);
|
| - parser.parsePathDataFromSource(NormalizedParsing);
|
| - return builder.currentPoint();
|
| -}
|
| -
|
| }
|
|
|