b=668969 size fences for empty mfenced in the same way as for mfenced with child(ren) occupying no space r=karlt

--HG--
extra : rebase_source : ca173f8830e5d87a6132d04f0df72aec6458f96e
This commit is contained in:
Florian Scholz 2011-07-11 16:11:28 +12:00
parent e351bb6117
commit ee3ef5b0c8

View File

@ -24,6 +24,7 @@
* David J. Fiddes <D.J.Fiddes@hw.ac.uk>
* Pierre Phaneuf <pp@ludusdesign.com>
* Frederic Wang <fred.wang@free.fr>
* Florian Scholz <elchi3@elchi3.de>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
@ -351,12 +352,10 @@ nsMathMLmfencedFrame::Reflow(nsPresContext* aPresContext,
// adjust the origin of children.
// we need to center around the axis
if (firstChild) { // do nothing for an empty <mfenced></mfenced>
nscoord delta = NS_MAX(containerSize.ascent - axisHeight,
containerSize.descent + axisHeight);
containerSize.ascent = delta + axisHeight;
containerSize.descent = delta - axisHeight;
}
nscoord delta = NS_MAX(containerSize.ascent - axisHeight,
containerSize.descent + axisHeight);
containerSize.ascent = delta + axisHeight;
containerSize.descent = delta - axisHeight;
/////////////////
// opening fence ...