summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGPolylineElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGPolylineElement.cpp')
-rw-r--r--WebCore/svg/SVGPolylineElement.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/WebCore/svg/SVGPolylineElement.cpp b/WebCore/svg/SVGPolylineElement.cpp
index c9750b2..8bd6d7b 100644
--- a/WebCore/svg/SVGPolylineElement.cpp
+++ b/WebCore/svg/SVGPolylineElement.cpp
@@ -23,8 +23,6 @@
#if ENABLE(SVG)
#include "SVGPolylineElement.h"
-#include "SVGPointList.h"
-
namespace WebCore {
inline SVGPolylineElement::SVGPolylineElement(const QualifiedName& tagName, Document* document)
@@ -41,15 +39,15 @@ void SVGPolylineElement::toPathData(Path& path) const
{
ASSERT(path.isEmpty());
- int len = points()->numberOfItems();
- if (len < 1)
+ SVGPointList& points = pointList();
+ if (points.isEmpty())
return;
- ExceptionCode ec = 0;
- path.moveTo(points()->getItem(0, ec));
+ path.moveTo(points.first());
- for (int i = 1; i < len; ++i)
- path.addLineTo(points()->getItem(i, ec));
+ unsigned size = points.size();
+ for (unsigned i = 1; i < size; ++i)
+ path.addLineTo(points.at(i));
}
}