PRInt32 n = aLine->mChildCount;
PRInt32 n = aLine->ChildCount();
nsBlockFrame::ReflowLine(nsBlockReflowState& aState,                         LineData* aLine,                         nsReflowStatus& aReflowResult){  NS_FRAME_TRACE(NS_FRAME_TRACE_CALLS,     ("nsBlockFrame::ReflowLine: line=%p", aLine));  // Setup the line-layout for the new line  aState.mLineLayout.Reset();  aState.mCurrentLine = aLine;  aState.mInlineReflowPrepared = PR_FALSE;  // If the line already has floaters on it from last time, remove  // them from the spacemanager now.  if (nsnull != aLine->mFloaters) {    if (eReflowReason_Resize != aState.reason) {      aLine->UnplaceFloaters(aState.mSpaceManager);    }    delete aLine->mFloaters;    aLine->mFloaters = nsnull;  }  aLine->ClearDirty();  aLine->SetNeedDidReflow();  // Reflow mapped frames in the line  nsBlockFrame* nextInFlow;  PRBool keepGoing = PR_FALSE;  PRInt32 n = aLine->mChildCount;  if (0 != n) {    nsIFrame* frame = aLine->mFirstChild;#ifdef NS_DEBUG    const nsStyleDisplay* display;    frame->GetStyleData(eStyleStruct_Display,                        (const nsStyleStruct*&) display);    const nsStylePosition* position;    frame->GetStyleData(eStyleStruct_Position,                        (const nsStyleStruct*&) position);    PRBool isBlock = nsLineLayout::TreatFrameAsBlock(display, position);    NS_ASSERTION(isBlock == aLine->IsBlock(), "bad line isBlock");#endif    if (aLine->IsBlock()) {      keepGoing = ReflowBlockFrame(aState, aLine, frame, aReflowResult);      return keepGoing;    }    else {      while (--n >= 0) {        keepGoing = ReflowInlineFrame(aState, aLine, frame, aReflowResult);        if (!keepGoing) {          // It is possible that one or more of next lines are empty          // (because of DeleteNextInFlowsFor). If so, delete them now          // in case we are finished.          LineData* nextLine = aLine->mNext;          while ((nsnull != nextLine) && (0 == nextLine->mChildCount)) {            // Discard empty lines immediately. Empty lines can happen            // here because of DeleteNextInFlowsFor not being able to            // delete lines.            aLine->mNext = nextLine->mNext;            NS_ASSERTION(nsnull == nextLine->mFirstChild, "bad empty line");            nextLine->mNext = aState.mFreeList;            aState.mFreeList = nextLine;            nextLine = aLine->mNext;          }          goto done;        }        frame->GetNextSibling(frame);      }    }  }  // Pull frames from the next line until we can't  while (nsnull != aLine->mNext) {    keepGoing = PullFrame(aState, aLine, &aLine->mNext,                          PR_FALSE, aReflowResult);    if (!keepGoing) {      goto done;    }  }  // Pull frames from the next-in-flow(s) until we can't  nextInFlow = aState.mNextInFlow;  while (nsnull != nextInFlow) {    LineData* line = nextInFlow->mLines;    if (nsnull == line) {      nextInFlow = (nsBlockFrame*) nextInFlow->mNextInFlow;      aState.mNextInFlow = nextInFlow;      continue;    }    keepGoing = PullFrame(aState, aLine, &nextInFlow->mLines,                          PR_TRUE, aReflowResult);    if (!keepGoing) {      goto done;    }  }  keepGoing = PR_TRUE;done:;  if (!aLine->IsBlock()) {    return PlaceLine(aState, aLine, aReflowResult);  }  return keepGoing;}