[Webkit-unassigned] [Bug 52781] Inserting multiple whitespace using text composition (IME) should insert interleaved nbsp and whitespace.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 24 19:09:29 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=52781





--- Comment #13 from Ryosuke Niwa <rniwa at webkit.org>  2011-01-24 19:09:28 PST ---
(In reply to comment #12)
> (From update of attachment 80007 [details])
> Ryosuke informed me that replace copies the string. So the new code is certainly more efficient.

Note: new function creates copy regardless of whether there are whitespace or not while the old implementation doesn't make a copy when there are no whitespace.  However, in practice, almost all text contains whitespace so this shouldn't be a problem.  We can add that optimization later if we're so inclined.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list