| Index: third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| index 94b22165159e02ad9d8de000a9ad1fec3e481ea4..676146dab788cb9592c3eaf4fcaf2b641047589f 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGPathElement.cpp
|
| @@ -24,7 +24,7 @@
|
| #include "core/layout/svg/LayoutSVGPath.h"
|
| #include "core/svg/SVGDocumentExtensions.h"
|
| #include "core/svg/SVGMPathElement.h"
|
| -#include "core/svg/SVGPathUtilities.h"
|
| +#include "core/svg/SVGPathQuery.h"
|
| #include "core/svg/SVGPointTearOff.h"
|
|
|
| namespace blink {
|
| @@ -81,18 +81,18 @@ Path SVGPathElement::asPath() const
|
|
|
| float SVGPathElement::getTotalLength()
|
| {
|
| - return getTotalLengthOfSVGPathByteStream(pathByteStream());
|
| + return SVGPathQuery(pathByteStream()).getTotalLength();
|
| }
|
|
|
| PassRefPtrWillBeRawPtr<SVGPointTearOff> SVGPathElement::getPointAtLength(float length)
|
| {
|
| - FloatPoint point = getPointAtLengthOfSVGPathByteStream(pathByteStream(), length);
|
| + FloatPoint point = SVGPathQuery(pathByteStream()).getPointAtLength(length);
|
| return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnimVal);
|
| }
|
|
|
| unsigned SVGPathElement::getPathSegAtLength(float length)
|
| {
|
| - return getSVGPathSegAtLengthFromSVGPathByteStream(pathByteStream(), length);
|
| + return SVGPathQuery(pathByteStream()).getPathSegIndexAtLength(length);
|
| }
|
|
|
| void SVGPathElement::svgAttributeChanged(const QualifiedName& attrName)
|
|
|