nsMargin margin = aReflowState.mComputedMargin; if ((margin.left == NS_AUTOMARGIN) || (margin.right == NS_AUTOMARGIN)) {
PRBool hasAutoMargin = eStyleUnit_Auto == aReflowState.mStyleSpacing->mMargin.GetLeftUnit() || eStyleUnit_Auto == aReflowState.mStyleSpacing->mMargin.GetRightUnit(); if (hasAutoMargin) {
FixAutoMargins(nsHTMLReflowState& aReflowState){  nsMargin margin = aReflowState.mComputedMargin;  if ((margin.left == NS_AUTOMARGIN) || (margin.right == NS_AUTOMARGIN)) {    nsRect rect;    aReflowState.frame->GetRect(rect);    nscoord compWidth = rect.width - aReflowState.mComputedBorderPadding.left -                                     aReflowState.mComputedBorderPadding.right;    const nsHTMLReflowState* containRS =       nsHTMLReflowState::GetContainingBlockReflowState(aReflowState.parentReflowState);    aReflowState.CalculateBlockSideMargins(containRS, compWidth);  }}