Reviewed by Niko
Correction, 'z' and 'Z' are the only commands that cannot have an extended
list of arguments.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28575
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-09 Oliver Hunt <oliver@apple.com>
+
+ Reviewed by Niko.
+
+ Somehow I managed to not check in new expected results
+ in the last patch.
+
+ * svg/dom/path-parser-expected.txt:
+
2007-12-09 Oliver Hunt <oliver@apple.com>
Reviewed by Niko.
CONSOLE MESSAGE: line 97: Error: Problem parsing d=""
CONSOLE MESSAGE: line 97: Error: Problem parsing d="M"
CONSOLE MESSAGE: line 97: Error: Problem parsing d="M
+CONSOLE MESSAGE: line 97: Error: Problem parsing d="M1,1Z0"
This test fuzzes the path parser with semi-random attribute values and dumps the results.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+2007-12-09 Oliver Hunt <oliver@apple.com>
+
+ Reviewed by Niko.
+
+ Correction, 'z' and 'Z' are the only commands that cannot have an extended
+ list of arguments.
+
+ * svg/SVGParserUtilities.cpp:
+ (WebCore::SVGPathParser::parseSVG):
+
2007-12-09 Oliver Hunt <oliver@apple.com>
Reviewed by Niko.
// Check for remaining coordinates in the current command.
if ((*ptr == '+' || *ptr == '-' || (*ptr >= '0' && *ptr <= '9')) &&
- (command != 'z' && command !='a' && command != 'A')) {
+ (command != 'z' && command != 'Z')) {
if (command == 'M')
command = 'L';
else if (command == 'm')
command = 'l';
- else
- // Garbage data at the end of the path
- return false;
} else
command = *(ptr++);