Bug 1028521: Use the nsHTMLReflowMetrics' writing mode passed in from the container in nsMathMLContainerFrame::ReflowChild, not the child frame's. r=jfkthame

This commit is contained in:
Simon Montagu 2014-06-24 01:36:45 -07:00
parent 333a20ce82
commit 6579381e92

View File

@ -849,7 +849,7 @@ nsMathMLContainerFrame::ReflowChild(nsIFrame* aChildFrame,
if (aDesiredSize.BlockStartAscent() == nsHTMLReflowMetrics::ASK_FOR_BASELINE) {
// This will be suitable for inline frames, which are wrapped in a block.
nscoord ascent;
WritingMode wm = aReflowState.GetWritingMode();
WritingMode wm = aDesiredSize.GetWritingMode();
if (!nsLayoutUtils::GetLastLineBaseline(wm, aChildFrame, &ascent)) {
// We don't expect any other block children so just place the frame on
// the baseline instead of going through DidReflow() and