[Webkit-unassigned] [Bug 108347] CSS3 'word-break: break-all' spoils CJK line-break restrictions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 24 09:40:10 PST 2013


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





--- Comment #9 from Lu jing <dujid0 at gmail.com>  2013-02-24 09:42:33 PST ---
This can be fixed by only changing the following code:

==== from ====
midWordBreak = width.committedWidth() + wrapW + charWidth > width.availableWidth();

==== to ====
midWordBreak = !Font::isCJKIdeographOrSymbol(c) && width.committedWidth() + wrapW + charWidth > width.availableWidth();

in RenderBlockLineLayout.cpp, line 2824.

The current implementations ignores the CJK detecting and always perform line breaking.

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