Bug 1108616 - part 1 - Language-specific text-transform casing behavior should only be used when content was explicitly tagged for language. r=dbaron
This commit is contained in:
@@ -311,8 +311,11 @@ nsCaseTransformTextRunFactory::TransformString(
|
||||
style = aAllUppercase ? NS_STYLE_TEXT_TRANSFORM_UPPERCASE :
|
||||
styleContext->StyleText()->mTextTransform;
|
||||
|
||||
if (lang != styleContext->StyleFont()->mLanguage) {
|
||||
lang = styleContext->StyleFont()->mLanguage;
|
||||
const nsStyleFont* styleFont = styleContext->StyleFont();
|
||||
nsIAtom* newLang = styleFont->mExplicitLanguage
|
||||
? styleFont->mLanguage : nullptr;
|
||||
if (lang != newLang) {
|
||||
lang = newLang;
|
||||
languageSpecificCasing = GetCasingFor(lang);
|
||||
greekState.Reset();
|
||||
irishState.Reset();
|
||||
|
||||
Reference in New Issue
Block a user