Bug 548964 [DW] bottom of spellchecker underline isn't painted in <input> element with some fonts r=jfkthame, a=joe

This commit is contained in:
Masayuki Nakano 2010-11-06 14:08:35 +09:00
parent c72734e2c4
commit fc878384cc

View File

@ -199,11 +199,7 @@ gfxDWriteFont::ComputeMetrics()
mFontFace->ReleaseFontTable(tableContext);
}
mMetrics.internalLeading =
ceil(((gfxFloat)(fontMetrics.ascent +
fontMetrics.descent -
fontMetrics.designUnitsPerEm) /
fontMetrics.designUnitsPerEm) * mAdjustedSize);
mMetrics.internalLeading = NS_MAX(mMetrics.maxHeight - mMetrics.emHeight, 0.0);
mMetrics.externalLeading =
ceil(((gfxFloat)fontMetrics.lineGap /
fontMetrics.designUnitsPerEm) * mAdjustedSize);