diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGPathSegListSource.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/svg/SVGPathSegListSource.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGPathSegListSource.cpp b/chromium/third_party/WebKit/Source/core/svg/SVGPathSegListSource.cpp index 2df5505067a..c58a68c458f 100644 --- a/chromium/third_party/WebKit/Source/core/svg/SVGPathSegListSource.cpp +++ b/chromium/third_party/WebKit/Source/core/svg/SVGPathSegListSource.cpp @@ -30,31 +30,30 @@ namespace WebCore { -SVGPathSegListSource::SVGPathSegListSource(const SVGPathSegList& pathSegList) - : m_pathSegList(pathSegList) +SVGPathSegListSource::SVGPathSegListSource(SVGPathSegList::ConstIterator itBegin, SVGPathSegList::ConstIterator itEnd) + : m_itCurrent(itBegin) + , m_itEnd(itEnd) { - m_itemCurrent = 0; - m_itemEnd = m_pathSegList.size(); } bool SVGPathSegListSource::hasMoreData() const { - return m_itemCurrent < m_itemEnd; + return m_itCurrent != m_itEnd; } bool SVGPathSegListSource::parseSVGSegmentType(SVGPathSegType& pathSegType) { - m_segment = m_pathSegList.at(m_itemCurrent); + m_segment = *m_itCurrent; pathSegType = static_cast<SVGPathSegType>(m_segment->pathSegType()); - ++m_itemCurrent; + ++m_itCurrent; return true; } SVGPathSegType SVGPathSegListSource::nextCommand(SVGPathSegType) { - m_segment = m_pathSegList.at(m_itemCurrent); + m_segment = *m_itCurrent; SVGPathSegType pathSegType = static_cast<SVGPathSegType>(m_segment->pathSegType()); - ++m_itemCurrent; + ++m_itCurrent; return pathSegType; } |