NS_PRECONDITION(aNewFrame, "null OUT ptr"); if (nsnull == aNewFrame) { return NS_ERROR_NULL_POINTER; } nsGridRowLeafFrame* it = new (aPresShell) nsGridRowLeafFrame (aPresShell, aIsRoot, aLayoutManager); if (nsnull == it) return NS_ERROR_OUT_OF_MEMORY;  *aNewFrame = it; return NS_OK;
return new (aPresShell) nsGridRowLeafFrame (aPresShell, aIsRoot, aLayoutManager);
NS_NewGridRowLeafFrame ( nsIPresShell* aPresShell, nsIFrame** aNewFrame, PRBool aIsRoot, nsIBoxLayout* aLayoutManager){    NS_PRECONDITION(aNewFrame, "null OUT ptr");    if (nsnull == aNewFrame) {        return NS_ERROR_NULL_POINTER;    }    nsGridRowLeafFrame* it = new (aPresShell) nsGridRowLeafFrame (aPresShell, aIsRoot, aLayoutManager);    if (nsnull == it)        return NS_ERROR_OUT_OF_MEMORY;    *aNewFrame = it;    return NS_OK;} 