nsresult rv = nsBlockFrameSuper::Init(aPresContext, aContent, aParent, aContext, aPrevInFlow); if (nsBlockReflowContext::IsHTMLParagraph(this)) { mState |= NS_BLOCK_IS_HTML_PARAGRAPH;
const nsStyleDisplay* styleDisplay; GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&) styleDisplay); if ((nsnull == mPrevInFlow) && (NS_STYLE_DISPLAY_LIST_ITEM == styleDisplay->mDisplay) && (nsnull == mBullet)) {  mBullet = new BulletFrame(mContent, this); if (nsnull == mBullet) { return NS_ERROR_OUT_OF_MEMORY; }   nsIStyleContext* kidSC; kidSC = aPresContext.ResolvePseudoStyleContextFor(nsHTMLAtoms::bulletPseudo, this); mBullet->SetStyleContext(&aPresContext, kidSC); NS_RELEASE(kidSC);    const nsStyleList* styleList; GetStyleData(eStyleStruct_List, (const nsStyleStruct*&) styleList); if (NS_STYLE_LIST_STYLE_POSITION_INSIDE == styleList->mListStylePosition) { InsertNewFrame(aPresContext, this, mBullet, nsnull); }
nsBlockFrame::Init(nsIPresContext&  aPresContext,                   nsIContent*      aContent,                   nsIFrame*        aParent,                   nsIStyleContext* aContext,                   nsIFrame*        aPrevInFlow){  if (aPrevInFlow) {    // Copy over the block/area frame flags    nsBlockFrame*  blockFrame = (nsBlockFrame*)aPrevInFlow;    SetFlags(blockFrame->mFlags);  }  nsresult rv = nsBlockFrameSuper::Init(aPresContext, aContent, aParent,                                        aContext, aPrevInFlow);  if (nsBlockReflowContext::IsHTMLParagraph(this)) {    mState |= NS_BLOCK_IS_HTML_PARAGRAPH;  }  return rv;}