Fix for bug 8292. MacGFX now understands underline in CSS.

git-svn-id: svn://10.0.0.236/trunk@42558 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pinkerton%netscape.com 1999-08-06 22:16:33 +00:00
parent a3a4d6c57b
commit 3d0b196040

View File

@ -354,6 +354,13 @@ NS_EXPORT void nsFontMetricsMac::GetNativeTextStyle(nsIFontMetrics& inMetrics,
if (aFont->weight > NS_FONT_WEIGHT_NORMAL) // don't test NS_FONT_WEIGHT_BOLD
textFace |= bold;
if ( aFont->decorations & NS_FONT_DECORATION_UNDERLINE )
textFace |= underline;
if ( aFont->decorations & NS_FONT_DECORATION_OVERLINE )
textFace |= underline; // THIS IS WRONG, BUT HERE FOR COMPLETENESS
if ( aFont->decorations & NS_FONT_DECORATION_LINE_THROUGH )
textFace |= underline; // THIS IS WRONG, BUT HERE FOR COMPLETENESS
RGBColor black = {0};
outStyle.tsFont = (short)fontNum;