CSSStyleSheetImpl  *it = new CSSStyleSheetImpl();  if (nsnull == it) { return NS_ERROR_OUT_OF_MEMORY; }  NS_ADDREF(it); *aInstancePtrResult = it;
*aInstancePtrResult = sheet;
NS_NewCSSStyleSheet(nsICSSStyleSheet** aInstancePtrResult){  if (aInstancePtrResult == nsnull) {    return NS_ERROR_NULL_POINTER;  }  CSSStyleSheetImpl  *it = new CSSStyleSheetImpl();  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  NS_ADDREF(it);  *aInstancePtrResult = it;  return NS_OK;}