aState.mInlineLayout.SetReflowSpace(aState.mCurrentBand.availSpace.x + aState.mBulletPadding, aState.mY, aState.mCurrentBand.availSpace.width,
aState.mInlineLayout.SetReflowSpace(x, aState.mY, width,
nsCSSBlockFrame::ReflowInlineFrame(nsCSSBlockReflowState& aState,                                   LineData*              aLine,                                   nsIFrame*              aFrame,                                   nsInlineReflowStatus&  aReflowResult){  if (!aState.mInlineLayoutPrepared) {    aState.mLineLayout.Prepare(aState.mX + aState.mBulletPadding);    aState.mInlineLayout.Prepare(aState.mUnconstrainedWidth, aState.mNoWrap,                                 aState.mComputeMaxElementSize);    aState.mInlineLayout.SetReflowSpace(aState.mCurrentBand.availSpace.x +                                        aState.mBulletPadding,                                        aState.mY,                                        aState.mCurrentBand.availSpace.width,                                        aState.mCurrentBand.availSpace.height);    // If we we are a list-item container and we are positioning the    // first child on the line (which is true when !mInlineLayoutPrepared)    // and it's the first line, and we are not a continuation, then    // set the mIsBullet flag for the line layout code.    if (aState.mLineLayout.mListPositionOutside &&        (0 == aState.mLineLayout.mLineNumber) &&        (nsnull == mPrevInFlow)) {      aState.mInlineLayout.mIsBullet = PR_TRUE;      aState.mInlineLayout.mHaveBullet = PR_TRUE;    }    aState.mInlineLayoutPrepared = PR_TRUE;  }  nsresult rv;  nsIFrame* nextInFlow;  aReflowResult = aState.mInlineLayout.ReflowAndPlaceFrame(aFrame);  aState.mInlineLayout.mIsBullet = PR_FALSE;  if (NS_IS_REFLOW_ERROR(aReflowResult)) {    return PR_FALSE;  }  PRBool lineWasComplete = aLine->GetLastContentIsComplete();  if (!NS_INLINE_IS_BREAK(aReflowResult)) {    aState.mPrevChild = aFrame;    if (NS_FRAME_IS_COMPLETE(aReflowResult)) {      aFrame->GetNextSibling(aFrame);      aLine->SetLastContentIsComplete();      return PR_TRUE;    }    // Create continuation frame (if necessary); add it to the end of    // the current line so that it can be pushed to the next line    // properly.    aLine->ClearLastContentIsComplete();    rv = aState.mInlineLayout.MaybeCreateNextInFlow(aFrame, nextInFlow);    if (NS_OK != rv) {      aReflowResult = nsInlineReflowStatus(rv);      return PR_FALSE;    }    if (nsnull != nextInFlow) {      // Add new child to the line      aLine->mChildCount++;    }    aFrame->GetNextSibling(aFrame);  }  else {    if (NS_INLINE_IS_BREAK_AFTER(aReflowResult)) {      aState.mPrevChild = aFrame;      if (NS_FRAME_IS_COMPLETE(aReflowResult)) {        aLine->SetLastContentIsComplete();      }      else {        // Create continuation frame (if necessary); add it to the end of        // the current line so that it can be pushed to the next line        // properly.        aLine->ClearLastContentIsComplete();        rv = aState.mInlineLayout.MaybeCreateNextInFlow(aFrame, nextInFlow);        if (NS_OK != rv) {          aReflowResult = nsInlineReflowStatus(rv);          return PR_FALSE;        }        if (nsnull != nextInFlow) {          // Add new child to the line          aLine->mChildCount++;        }      }      aFrame->GetNextSibling(aFrame);    }    else {      NS_ASSERTION(aLine->GetLastContentIsComplete(), "bad mState");    }  }  // Split line since we aren't going to keep going  rv = SplitLine(aState, aLine, aFrame, lineWasComplete);  if (NS_IS_REFLOW_ERROR(rv)) {    aReflowResult = nsInlineReflowStatus(rv);  }  return PR_FALSE;}