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);