Index: Source/core/svg/SVGPathElement.cpp |
diff --git a/Source/core/svg/SVGPathElement.cpp b/Source/core/svg/SVGPathElement.cpp |
index b26d619e6b60a1bdadbd39a38cbcb890cbe1e54b..78b4a316975250abc81115dc97477ccd5da20bf0 100644 |
--- a/Source/core/svg/SVGPathElement.cpp |
+++ b/Source/core/svg/SVGPathElement.cpp |
@@ -68,23 +68,18 @@ DEFINE_NODE_FACTORY(SVGPathElement) |
float SVGPathElement::getTotalLength() |
{ |
- float totalLength = 0; |
- getTotalLengthOfSVGPathByteStream(*pathByteStream(), totalLength); |
- return totalLength; |
+ return getTotalLengthOfSVGPathByteStream(*pathByteStream()); |
} |
PassRefPtrWillBeRawPtr<SVGPointTearOff> SVGPathElement::getPointAtLength(float length) |
{ |
- FloatPoint point; |
- getPointAtLengthOfSVGPathByteStream(*pathByteStream(), length, point); |
+ FloatPoint point = getPointAtLengthOfSVGPathByteStream(*pathByteStream(), length); |
return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnimVal); |
} |
unsigned SVGPathElement::getPathSegAtLength(float length) |
{ |
- unsigned pathSeg = 0; |
- getSVGPathSegAtLengthFromSVGPathByteStream(*pathByteStream(), length, pathSeg); |
- return pathSeg; |
+ return getSVGPathSegAtLengthFromSVGPathByteStream(*pathByteStream(), length); |
} |
PassRefPtrWillBeRawPtr<SVGPathSegClosePath> SVGPathElement::createSVGPathSegClosePath() |