From f8562f7d9c19be233c173a37c4b7e708d04df365 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 git-svn-id: svn://10.0.0.236/trunk@224374 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsFrameSetFrame.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/generic/nsFrameSetFrame.cpp b/mozilla/layout/generic/nsFrameSetFrame.cpp index df59a2566b3..de292cfd631 100644 --- a/mozilla/layout/generic/nsFrameSetFrame.cpp +++ b/mozilla/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);