Font::normalizeSpaces() could take an UChar*/length pair as arguments instead of a String. All call sites create a temporary String for passing to this function, and there is some cleverness in normalizeSpaces() to reuse that String if no spaces are normalized. We should let normalizeSpaces() do the String creation which means we'll always make 1 String instead of 1 in the best case and 2 in the worst case.
Created attachment 81402 [details] Proposed patch
Comment on attachment 81402 [details] Proposed patch r=me
Comment on attachment 81402 [details] Proposed patch Clearing flags on attachment: 81402 Committed r77768: <http://trac.webkit.org/changeset/77768>
All reviewed patches have been landed. Closing bug.