b=597212 hold a reference to language nsIAtom from gfxFontStyle r=jfkthame a=joe

--HG--
extra : transplant_source : %11e%10%CF%5E%90Ce%84S%ADj%16%EC%8FA%9A%0A%D5%29
This commit is contained in:
Karl Tomlinson 2010-11-11 08:44:32 +13:00
parent 17490b3745
commit be1b3e0616
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ struct THEBES_API gfxFontStyle {
// the language (may be an internal langGroup code rather than an actual
// language code) specified in the document or element's lang property,
// or inferred from the charset
nsIAtom *language;
nsRefPtr<nsIAtom> language;
// Language system tag, to override document language;
// an OpenType "language system" tag represented as a 32-bit integer

View File

@ -2031,7 +2031,7 @@ gfxPangoFontGroup::MakeFontSet(PangoLanguage *aLang, gfxFloat aSizeAdjustFactor,
}
nsAutoTArray<nsString, 20> fcFamilyList;
GetFcFamilies(&fcFamilyList, langGroup ? langGroup : mStyle.language);
GetFcFamilies(&fcFamilyList, langGroup ? langGroup : mStyle.language.get());
// To consider: A fontset cache here could be helpful.