mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1011461 - Text in bullet shows vertical-positioning discrepancy. r=jfkthame
This commit is contained in:
parent
2a32ff58ea
commit
0bab99e236
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user