Bug 105445

Summary: WebKitCSSTransformValue::customCssText() should always allocate once
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: CSSAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, macpherson, menard, ojan.autocc, sam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch menard: review+

Description Benjamin Poulain 2012-12-19 09:37:34 PST
The StringBuilder in WebKitCSSTransformValue::customCssText() has the unfortunate side effect of causing multiple String allocations.
Comment 1 Benjamin Poulain 2012-12-19 09:47:45 PST
Created attachment 180184 [details]
Patch
Comment 2 Build Bot 2012-12-19 10:18:30 PST
Comment on attachment 180184 [details]
Patch

Attachment 180184 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/15418643
Comment 3 Benjamin Poulain 2012-12-19 12:04:09 PST
Created attachment 180202 [details]
Patch
Comment 4 Alexis Menard (darktears) 2013-01-03 15:54:03 PST
Comment on attachment 180202 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=180202&action=review

Ok with comments.

> Source/WebCore/ChangeLog:9
> +        it was typically done with 2 memory allocation due to the string size in StringBuilder.

Typo. allocation -> allocations.

> Source/WebCore/ChangeLog:11
> +        This patch change to code to use the String Concatenate opeartions in order

Typo. Fix when landing.
Comment 5 Benjamin Poulain 2013-01-04 12:31:07 PST
Committed r138829: <http://trac.webkit.org/changeset/138829>