summaryrefslogtreecommitdiff
path: root/Source/WebCore/svg/SVGPathParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/SVGPathParser.cpp')
-rw-r--r--Source/WebCore/svg/SVGPathParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/svg/SVGPathParser.cpp b/Source/WebCore/svg/SVGPathParser.cpp
index 7decf56d8..dc4892aab 100644
--- a/Source/WebCore/svg/SVGPathParser.cpp
+++ b/Source/WebCore/svg/SVGPathParser.cpp
@@ -282,7 +282,7 @@ bool SVGPathParser::parseArcToSegment()
return true;
}
-bool SVGPathParser::parsePathDataFromSource(PathParsingMode pathParsingMode)
+bool SVGPathParser::parsePathDataFromSource(PathParsingMode pathParsingMode, bool checkForInitialMoveTo)
{
ASSERT(m_source);
ASSERT(m_consumer);
@@ -303,7 +303,7 @@ bool SVGPathParser::parsePathDataFromSource(PathParsingMode pathParsingMode)
m_lastCommand = PathSegUnknown;
// Path must start with moveto.
- if (command != PathSegMoveToAbs && command != PathSegMoveToRel)
+ if (checkForInitialMoveTo && command != PathSegMoveToAbs && command != PathSegMoveToRel)
return false;
while (true) {