WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93572
Append the unit in place when generating the text value of a CSSPrimitiveValue
https://bugs.webkit.org/show_bug.cgi?id=93572
Summary
Append the unit in place when generating the text value of a CSSPrimitiveValue
Benjamin Poulain
Reported
2012-08-08 19:59:11 PDT
Append the unit in place when generating the text value of a CSSPrimitiveValue
Attachments
Patch
(6.80 KB, patch)
2012-08-08 20:33 PDT
,
Benjamin Poulain
kling
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2012-08-08 20:33:41 PDT
Created
attachment 157379
[details]
Patch
Andreas Kling
Comment 2
2012-08-09 05:02:52 PDT
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?
Benjamin Poulain
Comment 3
2012-08-09 10:46:50 PDT
> > 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 :)
Benjamin Poulain
Comment 4
2012-08-09 16:50:12 PDT
Committed
r125221
: <
http://trac.webkit.org/changeset/125221
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug