[Webkit-unassigned] [Bug 108881] Canvas fillText and measureText handle ideographic spaces differently

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 9 13:43:07 PDT 2013


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





--- Comment #24 from Darin Adler <darin at apple.com>  2013-08-09 13:42:44 PST ---
(From update of attachment 208423)
View in context: https://bugs.webkit.org/attachment.cgi?id=208423&action=review

> Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:98
> +// Spec : http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character
> +static inline bool isHTMLSpace(UChar c)
> +{
> +    return (c == 0x0009 || c == 0x000A || c == 0x000B || c == 0x000C || c == 0x000D);
> +}

This function already exists in HTMLParserIdioms.h and you should use the version from there instead of adding a new one.

-- 
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