DescriptionSVGPathParser: Move unaltered emits to a separate code-path
Hoist the check for normalized parsing/normalization out of the emit*
methods, and with it the non-normalized emittal out of emit*. This type
of emittal is trivial, so the use of SVGPathParser::m_mode can be
avoided altogther in this code-path.
This leaves the emit* methods with only doing normalized emittals, and
SVGPathParser::m_pathParsingMode only needs to be checked in the main
parsing method, so it becomes possible to just use the parameter
directly.
BUG=467592
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192369
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|