From dc7cb3a199f6a9eda8699f1d293d046108d7e614 Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Tue, 10 Apr 2007 19:08:21 +0000 Subject: [PATCH] Additional patch for bug 369150, r+sr=bz --- layout/generic/nsFrameSetFrame.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layout/generic/nsFrameSetFrame.cpp b/layout/generic/nsFrameSetFrame.cpp index df59a2566b3..de292cfd631 100644 --- a/layout/generic/nsFrameSetFrame.cpp +++ b/layout/generic/nsFrameSetFrame.cpp @@ -1019,7 +1019,12 @@ nsHTMLFramesetFrame::Reflow(nsPresContext* aPresContext, ourContent->GetColSpec(&cols, &colSpecs); // If the number of cols or rows has changed, the frame for the frameset // will be re-created. - NS_ENSURE_STATE(mNumRows == rows && mNumCols == cols); + if (mNumRows != rows || mNumCols != cols) { + aStatus = NS_FRAME_COMPLETE; + mDrag.UnSet(); + NS_FRAME_SET_TRUNCATION(aStatus, aReflowState, aDesiredSize); + return NS_OK; + } if (!mDrag.mActive) { CalculateRowCol(aPresContext, width, mNumCols, colSpecs, mColSizes);