Bug 425249 gfxWindowsPlatform::InitBadUnderlineList() is broken by bug 424018 r+b1.9+a1.9b5=stuart

This commit is contained in:
masayuki@d-toybox.com 2008-03-26 14:43:43 -07:00
parent 858afd3940
commit 9ff1d27f63
3 changed files with 4 additions and 4 deletions

View File

@ -77,6 +77,7 @@ private:
public:
nsTArray<nsRefPtr<FontEntry> > mVariations;
nsString mName;
PRPackedBool mIsBadUnderlineFont;
private:
PRBool mHasStyles;

View File

@ -203,6 +203,8 @@ FontFamily::FamilyAddStylesProc(const ENUMLOGFONTEXW *lpelfe,
}
}
fe->mIsBadUnderlineFont = ff->mIsBadUnderlineFont;
// read in the character map
logFont.lfCharSet = DEFAULT_CHARSET;
HFONT font = CreateFontIndirectW(&logFont);

View File

@ -285,10 +285,7 @@ gfxWindowsPlatform::InitBadUnderlineList()
FontFamily *ff = FindFontFamily(resolved);
if (!ff)
continue;
for (PRUint32 j = 0; j < ff->mVariations.Length(); ++j) {
nsRefPtr<FontEntry> fe = ff->mVariations[j];
fe->mIsBadUnderlineFont = 1;
}
ff->mIsBadUnderlineFont = 1;
}
}