Closed Bug 1134216 Opened 5 years ago Closed 5 years ago
auto-hyphenation fails in content where text-transform has caused a change in string length
If we end up needing to "merge" characters in a transformed textrun, as when "ß" is uppercased to "SS", any automatic hyphenation that may have been applicable will be lost. Testcase: data:text/html;charset=utf-8,<div lang="de" style="width:0px;-moz-hyphens:auto;text-transform:uppercase">straße should break as "STRA-SSE", but does not hyphenate at all. This happens because nsCaseTransformTextRunFactory::TransformString treats its aCanBreakBeforeArray as being an array of bools, whereas it should be an array of break-flags values as defined for gfxShapedText::CompressedGlyph.
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Attachment #8565990 - Flags: review?(smontagu) → review+
Attachment #8565991 - Flags: review?(smontagu) → review+
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.