Fix holes in stretchy MathML characters when their glue is tiny, b=311046, r+sr=roc

This commit is contained in:
rbs%maths.uq.edu.au 2005-10-20 00:28:47 +00:00
Родитель e7d6eab80a
Коммит 10d9b28fce
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -2210,6 +2210,8 @@ nsMathMLChar::PaintVertically(nsPresContext* aPresContext,
aRenderingContext.GetFontMetrics(*getter_AddRefs(fm));
nsMathMLFrame::GetRuleThickness(fm, overlap);
overlap = 2 * PR_MAX(overlap, onePixel);
while (overlap > onePixel && bmdata[3].ascent + bmdata[3].descent <= 2*overlap)
overlap -= onePixel;
// to protect against gaps, pretend the glue is smaller than
// it says to allow a small overlap when adjoining it
@ -2396,6 +2398,8 @@ nsMathMLChar::PaintHorizontally(nsPresContext* aPresContext,
aRenderingContext.GetFontMetrics(*getter_AddRefs(fm));
nsMathMLFrame::GetRuleThickness(fm, overlap);
overlap = 2 * PR_MAX(overlap, onePixel);
while (overlap > onePixel && bmdata[3].rightBearing - bmdata[3].leftBearing <= 2*overlap)
overlap -= onePixel;
// to protect against gaps, pretend the glue is smaller than
// it says to allow a small overlap when adjoining it