mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
e351bb6117
commit
ee3ef5b0c8
@ -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 ...
|
||||
|
Loading…
Reference in New Issue
Block a user