зеркало из https://github.com/mozilla/pjs.git
turn on CG metrics for quartz rendering if 10.1.5 is present. bug 149427, r=ccarlen/rs=hyatt
This commit is contained in:
Родитель
5c19b76a13
Коммит
2de3127472
|
@ -277,6 +277,7 @@ void nsToolkit::SetupQuartzRendering()
|
|||
kQDUseCGTextMetrics = (1 << 2)
|
||||
};
|
||||
#endif
|
||||
const int kFlagsWeUse = kQDUseCGTextRendering | kQDUseCGTextMetrics;
|
||||
|
||||
// turn on quartz rendering if we find the symbol in the app framework. Just turn
|
||||
// on the bits that we need, don't turn off what someone else might have wanted. If
|
||||
|
@ -293,9 +294,9 @@ void nsToolkit::SetupQuartzRendering()
|
|||
nsresult rv = prefs->GetBoolPref(gQuartzRenderingPref, &enableQuartz);
|
||||
UInt32 oldFlags = SwapQDTextFlags(kQDDontChangeFlags);
|
||||
if ( NS_FAILED(rv) || enableQuartz )
|
||||
SwapQDTextFlags(oldFlags | kQDUseTrueTypeScalerGlyphs | kQDUseCGTextRendering);
|
||||
SwapQDTextFlags(oldFlags | kFlagsWeUse);
|
||||
else
|
||||
SwapQDTextFlags(oldFlags & !kQDUseCGTextRendering);
|
||||
SwapQDTextFlags(oldFlags & !kFlagsWeUse);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче