mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Fix holes in stretchy MathML characters when their glue is tiny, b=311046, r+sr=roc
This commit is contained in:
parent
e7d6eab80a
commit
10d9b28fce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user