mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
17490b3745
commit
be1b3e0616
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user