зеркало из https://github.com/mozilla/gecko-dev.git
bug 752455 - don't allow word break within cluster when copying glyph data for text-transform. r=smontagu
This commit is contained in:
Родитель
a31ed06074
Коммит
a0b1efadaa
|
@ -5333,7 +5333,9 @@ gfxTextRun::CopyGlyphDataFrom(gfxTextRun *aSource, PRUint32 aStart,
|
|||
CompressedGlyph *dstGlyphs = mCharacterGlyphs + aDest;
|
||||
for (PRUint32 i = 0; i < aLength; ++i) {
|
||||
CompressedGlyph g = srcGlyphs[i];
|
||||
g.SetCanBreakBefore(dstGlyphs[i].CanBreakBefore());
|
||||
g.SetCanBreakBefore(!g.IsClusterStart() ?
|
||||
CompressedGlyph::FLAG_BREAK_TYPE_NONE :
|
||||
dstGlyphs[i].CanBreakBefore());
|
||||
if (!g.IsSimpleGlyph()) {
|
||||
PRUint32 count = g.GetGlyphCount();
|
||||
if (count > 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче