DescriptionSimplify CSSParserToken::textForUnitTests by using more WTF helpers
Instead of manually handling char arrays and using sprintf in converting
CSSParserTokens to strings, we should just concatenate Strings and use
String::number. I didn't bother using StringBuilder here since the
function is only used in unit tests and it's a bit more readable this way.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183975
Patch Set 1 #
Total comments: 4
Patch Set 2 : use numberToStringFixedWidth #Messages
Total messages: 10 (2 generated)
|