overflowLines = GetOverflowLines(aPresContext, PR_TRUE); if (overflowLines) {
if (nsnull != mOverflowLines) {
nsBlockFrame::DrainOverflowLines(nsIPresContext* aPresContext){#ifdef DEBUG  VerifyOverflowSituation(aPresContext);#endif  PRBool drained = PR_FALSE;  nsLineBox* overflowLines;  // First grab the prev-in-flows overflow lines  nsBlockFrame* prevBlock = (nsBlockFrame*) mPrevInFlow;  if (nsnull != prevBlock) {    overflowLines = prevBlock->GetOverflowLines(aPresContext, PR_TRUE);    if (nsnull != overflowLines) {      drained = PR_TRUE;      // Make all the frames on the overflow line list mine      nsIFrame* lastFrame = nsnull;      nsIFrame* frame = overflowLines->mFirstChild;      while (nsnull != frame) {        frame->SetParent(this);        // When pushing and pulling frames we need to check for whether any        // views need to be reparented        nsHTMLContainerFrame::ReparentFrameView(aPresContext, frame, prevBlock, this);        // Get the next frame        lastFrame = frame;        frame->GetNextSibling(&frame);      }      // Join the line lists      if (nsnull == mLines) {        mLines = overflowLines;      }      else {        // Join the sibling lists together        lastFrame->SetNextSibling(mLines->mFirstChild);        // Place overflow lines at the front of our line list        nsLineBox* lastLine = nsLineBox::LastLine(overflowLines);        lastLine->mNext = mLines;        mLines = overflowLines;      }    }  }  // Now grab our own overflow lines  overflowLines = GetOverflowLines(aPresContext, PR_TRUE);  if (overflowLines) {    // This can happen when we reflow and not everything fits and then    // we are told to reflow again before a next-in-flow is created    // and reflows.    nsLineBox* lastLine = nsLineBox::LastLine(mLines);    if (nsnull == lastLine) {      mLines = overflowLines;    }    else {      lastLine->mNext = overflowLines;      nsIFrame* lastFrame = lastLine->LastChild();      lastFrame->SetNextSibling(overflowLines->mFirstChild);    }    drained = PR_TRUE;  }  return drained;}