mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 386920. Preserve line-break data when copying glyphs. r=pavlov
This commit is contained in:
parent
5d094d6109
commit
0e49e842e8
@ -1639,7 +1639,7 @@ gfxTextRun::CopyGlyphDataFrom(gfxTextRun *aSource, PRUint32 aStart,
|
||||
PRUint32 i;
|
||||
for (i = 0; i < aLength; ++i) {
|
||||
CompressedGlyph g = aSource->mCharacterGlyphs[i + aStart];
|
||||
g.SetCanBreakBefore(PR_FALSE);
|
||||
g.SetCanBreakBefore(mCharacterGlyphs[i + aDest].CanBreakBefore());
|
||||
mCharacterGlyphs[i + aDest] = g;
|
||||
if (aStealData) {
|
||||
aSource->mCharacterGlyphs[i + aStart].SetMissing();
|
||||
|
Loading…
Reference in New Issue
Block a user