Bug672959 [OS/2] follow-up to bug467669 r=dragtext

This commit is contained in:
Walter Meinl 2011-07-31 14:00:13 -07:00
Родитель debb6a9272
Коммит c32c35deac
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -711,7 +711,7 @@ void gfxOS2FontGroup::CreateGlyphRunsFT(gfxTextRun *aTextRun, const PRUint8 *aUT
const PRUint32 appUnitsPerDevUnit = aTextRun->GetAppUnitsPerDevUnit();
gfxOS2Platform *platform = gfxOS2Platform::GetPlatform();
aTextRun->AddGlyphRun(font0, 0);
aTextRun->AddGlyphRun(font0, gfxTextRange::kFontGroup, 0, PR_FALSE);
// a textRun likely has the same font for most of the characters, so we can
// lock it before the loop for efficiency
FT_Face face0 = cairo_ft_scaled_font_lock_face(font0->CairoScaledFont());
@ -772,7 +772,7 @@ void gfxOS2FontGroup::CreateGlyphRunsFT(gfxTextRun *aTextRun, const PRUint8 *aUT
}
// select the current font into the text run
aTextRun->AddGlyphRun(font, utf16Offset);
aTextRun->AddGlyphRun(font, gfxTextRange::kFontGroup, utf16Offset, PR_FALSE);
PRInt32 advance = 0;
if (gid == font->GetSpaceGlyph()) {