Bug 1011461 - Text in bullet shows vertical-positioning discrepancy. r=jfkthame

This commit is contained in:
Xidorn Quan 2014-05-17 04:13:00 +02:00
parent 2a32ff58ea
commit 0bab99e236

View File

@ -416,8 +416,11 @@ nsBulletFrame::PaintBullet(nsRenderingContext& aRenderingContext, nsPoint aPt,
aRenderingContext.SetFont(fm);
nscoord ascent = fm->MaxAscent();
aRenderingContext.SetTextRunRTL(mTextIsRTL);
aRenderingContext.DrawString(text, mPadding.left + aPt.x,
mPadding.top + aPt.y + ascent);
aRenderingContext.DrawString(
text, mPadding.left + aPt.x,
NSToCoordRound(nsLayoutUtils::GetSnappedBaselineY(
this, aRenderingContext.ThebesContext(),
mPadding.top + aPt.y, ascent)));
break;
}
}