mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
06c6cc5dc9
commit
aa28e56146
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user