DescriptionRefactor parsing in SVGTransformList
In preparation for extended error reporting.
Split SVGTransform creation out of parseTransformOfType, and then fold
the remains into parseTransformParamList - naming the result
parseTransformArgumentsForType. Use a Vector with suitable
initial-capacity rather than a float[]. Change the handling trailing
commas so that it is not triggered when the maximum number of arguments
are reached. (This will allow for better errors to be reported in some
cases.)
Change parseAndSkipTransformType to return the parsed type via the
return value rather than an out parameter.
Reduce the number of calls to skipOptionalSVGSpaces in parseInternal
and parseTransformArgumentsForType, and make better use of the return
value from it.
Also make SVGTransformList::consolidate() and add() use initialize(...)
rather than open-coding it.
BUG=231612
Committed: https://crrev.com/440669dd8170823c9643d40060fd666297c73313
Cr-Commit-Position: refs/heads/master@{#372656}
Patch Set 1 #Patch Set 2 : Restore error-behavior for create(SVGTransformType, const String&) #
Total comments: 13
Patch Set 3 : Fixups #Patch Set 4 : Fix signedness "issue". #Messages
Total messages: 11 (3 generated)
|