mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 546813 - honor the language in the frame's styleContext when selecting fonts in SVG. r=jwatt
This commit is contained in:
parent
8ed928be2f
commit
c3e4dd3c2e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user