Merge 368101 with changes from bug 367442.

This commit is contained in:
dbaron%dbaron.org 2007-01-26 07:18:55 +00:00
Родитель 16345b302a
Коммит 7be5fce645
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -152,14 +152,14 @@ nsSVGForeignObjectFrame::Reflow(nsPresContext* aPresContext,
{
NS_ASSERTION(!aReflowState.parentReflowState,
"should only get reflow from being reflow root");
NS_ASSERTION(aReflowState.mComputedWidth == GetSize().width &&
NS_ASSERTION(aReflowState.ComputedWidth() == GetSize().width &&
aReflowState.mComputedHeight == GetSize().height,
"reflow roots should be reflown at existing size and "
"svg.css should ensure we have no padding/border/margin");
DoReflow();
aDesiredSize.width = aReflowState.mComputedWidth;
aDesiredSize.width = aReflowState.ComputedWidth();
aDesiredSize.height = aReflowState.mComputedHeight;
aDesiredSize.mOverflowArea =
nsRect(nsPoint(0, 0), nsSize(aDesiredSize.width, aDesiredSize.height));