Append the unit in place when generating the text value of a CSSPrimitiveValue
Created attachment 157379 [details] Patch
Comment on attachment 157379 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=157379&action=review r=me, great idea. > Source/WebCore/css/CSSPrimitiveValue.cpp:835 > - StringBuffer<UChar> buffer(decimal.bufferLengthForStringDecimal()); > + StringBuffer<UChar> buffer(decimal.bufferLengthForStringDecimal() + suffixLength); Could this also be made to use LChar/8-bit strings?
> > Source/WebCore/css/CSSPrimitiveValue.cpp:835 > > - StringBuffer<UChar> buffer(decimal.bufferLengthForStringDecimal()); > > + StringBuffer<UChar> buffer(decimal.bufferLengthForStringDecimal() + suffixLength); > > Could this also be made to use LChar/8-bit strings? Yep, I had been thinking the exact same thing when writing that :)
Committed r125221: <http://trac.webkit.org/changeset/125221>