Bug 546813 - honor the language in the frame's styleContext when selecting fonts in SVG. r=jwatt

This commit is contained in:
Jonathan Kew 2010-02-21 11:13:54 -08:00
parent 8ed928be2f
commit c3e4dd3c2e

View File

@ -1336,7 +1336,7 @@ nsSVGGlyphFrame::EnsureTextRun(float *aDrawScale, float *aMetricsScale,
double contextScale = nsSVGUtils::ComputeNormalizedHypotenuse(p.x, p.y);
nsCAutoString langGroup;
nsIAtom *langGroupAtom = presContext->GetLangGroup();
nsIAtom *langGroupAtom = mStyleContext->GetStyleVisibility()->mLangGroup;
if (langGroupAtom) {
const char* lg;
langGroupAtom->GetUTF8String(&lg);