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