nsComboboxControlFrame* it = new (aPresShell) nsComboboxControlFrame; if (!it) { return NS_ERROR_OUT_OF_MEMORY; }  it->AddStateBits(aStateFlags); *aNewFrame = it; return NS_OK;
return it;
NS_NewComboboxControlFrame(nsIPresShell* aPresShell, nsIFrame** aNewFrame, PRUint32 aStateFlags){  NS_PRECONDITION(aNewFrame, "null OUT ptr");  if (nsnull == aNewFrame) {    return NS_ERROR_NULL_POINTER;  }  nsComboboxControlFrame* it = new (aPresShell) nsComboboxControlFrame;  if (!it) {    return NS_ERROR_OUT_OF_MEMORY;  }  // set the state flags (if any are provided)  it->AddStateBits(aStateFlags);  *aNewFrame = it;  return NS_OK;}