mPrevMarginFlags = 0;
nsBlockReflowState::nsBlockReflowState(nsIPresContext& aPresContext,                                       const nsHTMLReflowState& aReflowState,                                       const nsHTMLReflowMetrics& aMetrics)  : nsFrameReflowState(aPresContext, aReflowState, aMetrics),    mLineLayout(aPresContext, aReflowState.spaceManager){  mInlineReflow = nsnull;  mLineLayout.Init(this);  mSpaceManager = aReflowState.spaceManager;  // Translate into our content area and then save the   // coordinate system origin for later.  mSpaceManager->Translate(mBorderPadding.left, mBorderPadding.top);  mSpaceManager->GetTranslation(mSpaceManagerX, mSpaceManagerY);  mPresContext = aPresContext;  mBlock = (nsBlockFrame*) frame;  mBlock->GetNextInFlow((nsIFrame*&)mNextInFlow);  mKidXMost = 0;  mY = 0;  mUnconstrainedWidth = maxSize.width == NS_UNCONSTRAINEDSIZE;  mUnconstrainedHeight = maxSize.height == NS_UNCONSTRAINEDSIZE;#ifdef NS_DEBUG  if (!mUnconstrainedWidth && (maxSize.width > 100000)) {    mBlock->ListTag(stdout);    printf(": bad parent: maxSize WAS %d,%d\n", maxSize.width, maxSize.height);    maxSize.width = NS_UNCONSTRAINEDSIZE;    mUnconstrainedWidth = PR_TRUE;  }  if (!mUnconstrainedHeight && (maxSize.height > 100000)) {    mBlock->ListTag(stdout);    printf(": bad parent: maxSize WAS %d,%d\n", maxSize.width, maxSize.height);    maxSize.height = NS_UNCONSTRAINEDSIZE;    mUnconstrainedHeight = PR_TRUE;  }#endif  mTextAlign = mStyleText->mTextAlign;  nscoord lr = mBorderPadding.left + mBorderPadding.right;  mY = mBorderPadding.top;  // Get and apply the stylistic size. Note: do not limit the  // height until we are done reflowing.  PRIntn ss = nsCSSLayout::GetStyleSize(&aPresContext, aReflowState,                                        mStyleSize);  mStyleSizeFlags = ss;  if (0 != (ss & NS_SIZE_HAS_WIDTH)) {    // The CSS2 spec says that the width attribute defines the    // width of the "content area" which does not include the    // border padding. So we add those back in.    mBorderArea.width = mStyleSize.width + lr;    mContentArea.width = mStyleSize.width;  }  else {    if (mUnconstrainedWidth) {      mBorderArea.width = NS_UNCONSTRAINEDSIZE;      mContentArea.width = NS_UNCONSTRAINEDSIZE;    }    else {      mBorderArea.width = maxSize.width;      mContentArea.width = maxSize.width - lr;    }  }  mBorderArea.height = maxSize.height;  mContentArea.height = maxSize.height;  mBottomEdge = maxSize.height;  if (!mUnconstrainedHeight) {    mBottomEdge -= mBorderPadding.bottom;  }  mPrevChild = nsnull;  mFreeList = nsnull;  mPrevLine = nsnull;}