Bug 394832. Remove overeager rounding that causes underlines to appear too close to the text. r=smontagu,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@236187 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3794,12 +3794,12 @@ nsTextFrame::PaintTextDecorations(gfxContext* aCtx, const gfxRect& aDirtyRect,
|
||||
return;
|
||||
|
||||
gfxFont::Metrics fontMetrics = GetFontMetrics(aProvider.GetFontGroup());
|
||||
PRInt32 app = aTextPaintStyle.PresContext()->AppUnitsPerDevPixel();
|
||||
gfxFloat app = aTextPaintStyle.PresContext()->AppUnitsPerDevPixel();
|
||||
|
||||
// XXX aFramePt is in AppUnits, shouldn't it be nsFloatPoint?
|
||||
gfxPoint pt(aFramePt.x / app, (aTextBaselinePt.y - mAscent) / app);
|
||||
gfxSize size(GetRect().width / app, 0);
|
||||
gfxFloat ascent = mAscent / app;
|
||||
gfxSize size(gfxFloat(GetRect().width) / app, 0);
|
||||
gfxFloat ascent = gfxFloat(mAscent) / app;
|
||||
|
||||
if (decorations & NS_FONT_DECORATION_OVERLINE) {
|
||||
size.height = fontMetrics.underlineSize;
|
||||
|
||||
Reference in New Issue
Block a user