DescriptionMake VTTParser::collectDigitsToInt non-copying
Modify VTTParser::collectDigits to simply count the number of digits and
advance the position. Rename it to scanDigits and make it local to the
compilation unit.
Convert users of collectDigits to use scanDigits instead. For
collectDigitsToInt this means that there's no longer a need to copy the
digits into a temporary String. Similarly for parseFloatPercentageValue.
Also fixes a minor issue in parseFloatPercentageValue where the endpoints
(0 and 100) were excluded from the range of valid values rather than
included.
BUG=305317
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163160
Patch Set 1 #
Total comments: 1
Patch Set 2 : Drop else-branch favouring initialization #
Messages
Total messages: 6 (0 generated)
|