Bug 1145936 - Fix sizing of foreignObject with vertical writing mode. r=smontagu

This commit is contained in:
Jonathan Kew 2015-04-01 16:50:11 +01:00
Родитель b5b6b47112
Коммит 4a73fc8f08
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -539,7 +539,7 @@ nsSVGForeignObjectFrame::DoReflow()
WritingMode wm = kid->GetWritingMode();
nsHTMLReflowState reflowState(presContext, kid,
&renderingContext,
LogicalSize(wm, GetLogicalSize(wm).ISize(wm),
LogicalSize(wm, ISize(wm),
NS_UNCONSTRAINEDSIZE));
nsHTMLReflowMetrics desiredSize(reflowState);
nsReflowStatus status;
@ -550,9 +550,9 @@ nsSVGForeignObjectFrame::DoReflow()
reflowState.ComputedPhysicalMargin() == nsMargin(0, 0, 0, 0),
"style system should ensure that :-moz-svg-foreign-content "
"does not get styled");
NS_ASSERTION(reflowState.ComputedWidth() == mRect.width,
NS_ASSERTION(reflowState.ComputedISize() == ISize(wm),
"reflow state made child wrong size");
reflowState.SetComputedHeight(mRect.height);
reflowState.SetComputedBSize(BSize(wm));
ReflowChild(kid, presContext, desiredSize, reflowState, 0, 0,
NS_FRAME_NO_MOVE_FRAME, status);