nsBlockFrame* it = new (aPresShell) nsBlockFrame; if (nsnull == it) { return NS_ERROR_OUT_OF_MEMORY; } it->SetFlags(aFlags); *aNewFrame = it; return NS_OK;
return it;
NS_NewBlockFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame, PRUint32 aFlags){  NS_PRECONDITION(aNewFrame, "null OUT ptr");  if (nsnull == aNewFrame) {    return NS_ERROR_NULL_POINTER;  }  nsBlockFrame* it = new (aPresShell) nsBlockFrame;  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  it->SetFlags(aFlags);  *aNewFrame = it;  return NS_OK;}