Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Unified Diff: third_party/WebKit/Source/core/svg/SVGTransformList.cpp

Issue 1663753003: Additional errors for SVG transform list parsing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGParsingError.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGTransformList.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGTransformList.cpp b/third_party/WebKit/Source/core/svg/SVGTransformList.cpp
index 96efe3af0475d7b8f9d506138853a6133dbff9cf..810f268b987b93fbb15c8a8f5423cc3914291e27 100644
--- a/third_party/WebKit/Source/core/svg/SVGTransformList.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGTransformList.cpp
@@ -207,10 +207,10 @@ SVGParsingError SVGTransformList::parseInternal(const CharType*& ptr, const Char
SVGTransformType transformType = parseAndSkipTransformType(ptr, end);
if (transformType == SVG_TRANSFORM_UNKNOWN)
- return SVGParsingError(SVGParseStatus::ParsingFailed, ptr - start);
+ return SVGParsingError(SVGParseStatus::ExpectedTransformFunction, ptr - start);
if (!skipOptionalSVGSpaces(ptr, end) || *ptr != '(')
- return SVGParsingError(SVGParseStatus::ParsingFailed, ptr - start);
+ return SVGParsingError(SVGParseStatus::ExpectedStartOfArguments, ptr - start);
ptr++;
TransformArguments arguments;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGParsingError.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698