Summary: | Append the unit in place when generating the text value of a CSSPrimitiveValue | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||
Component: | WebCore JavaScript | Assignee: | Benjamin Poulain <benjamin> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | cmarcelo, macpherson, menard, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Benjamin Poulain
2012-08-08 19:59:11 PDT
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> |