Bug 669932 - munderover: take into account the base child vertical metrics for the computation of the munderover ascent/descent. r=karlt

--HG--
extra : rebase_source : 6e37e82a7cc2406172d26096ea8d088c86248acc
This commit is contained in:
Frédéric Wang 2011-07-13 16:00:35 +02:00
parent 06c6cc5dc9
commit aa28e56146

View File

@ -436,6 +436,7 @@ nsMathMLmunderoverFrame::Place(nsRenderingContext& aRenderingContext,
nscoord ascentAnonymousBase =
NS_MAX(mBoundingMetrics.ascent + overDelta2,
overSize.ascent + bmOver.descent + overDelta1 + bmBase.ascent);
ascentAnonymousBase = NS_MAX(ascentAnonymousBase, baseSize.ascent);
GetItalicCorrection(bmAnonymousBase, correction);
@ -475,6 +476,9 @@ nsMathMLmunderoverFrame::Place(nsRenderingContext& aRenderingContext,
NS_MAX(mBoundingMetrics.descent + underDelta2,
bmAnonymousBase.descent + underDelta1 + bmUnder.ascent +
underSize.height - underSize.ascent);
aDesiredSize.height = NS_MAX(aDesiredSize.height,
aDesiredSize.ascent +
baseSize.height - baseSize.ascent);
aDesiredSize.width = mBoundingMetrics.width;
aDesiredSize.mBoundingMetrics = mBoundingMetrics;