diff options
Diffstat (limited to 'WebCore/svg/SVGPathParser.cpp')
-rw-r--r-- | WebCore/svg/SVGPathParser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/svg/SVGPathParser.cpp b/WebCore/svg/SVGPathParser.cpp index c729dfb..66bd00f 100644 --- a/WebCore/svg/SVGPathParser.cpp +++ b/WebCore/svg/SVGPathParser.cpp @@ -366,6 +366,9 @@ bool SVGPathParser::parsePathDataFromSource(PathParsingMode pathParsingMode) default: return false; } + if (!m_consumer->continueConsuming()) + return true; + m_lastCommand = command; if (!m_source->hasMoreData()) @@ -382,6 +385,8 @@ bool SVGPathParser::parsePathDataFromSource(PathParsingMode pathParsingMode) && m_lastCommand != PathSegCurveToQuadraticSmoothAbs && m_lastCommand != PathSegCurveToQuadraticSmoothRel) m_controlPoint = m_currentPoint; + + m_consumer->incrementPathSegmentCount(); } return false; |