NS_PRECONDITION(aNewFrame, "null OUT ptr"); if (nsnull == aNewFrame) { return NS_ERROR_NULL_POINTER; } nsTableCellFrame* it = (aIsBorderCollapse) ? new (aPresShell) nsBCTableCellFrame : new (aPresShell) nsTableCellFrame; if (nsnull == it) { return NS_ERROR_OUT_OF_MEMORY; } *aNewFrame = it; return NS_OK;
if (aIsBorderCollapse) return new (aPresShell) nsBCTableCellFrame; else return new (aPresShell) nsTableCellFrame;
NS_NewTableCellFrame(nsIPresShell* aPresShell,                      PRBool        aIsBorderCollapse,                     nsIFrame**    aNewFrame){  NS_PRECONDITION(aNewFrame, "null OUT ptr");  if (nsnull == aNewFrame) {    return NS_ERROR_NULL_POINTER;  }  nsTableCellFrame* it = (aIsBorderCollapse) ? new (aPresShell) nsBCTableCellFrame                                              : new (aPresShell) nsTableCellFrame;  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  *aNewFrame = it;  return NS_OK;}