HTMLCSSStyleSheetImpl*  it = new HTMLCSSStyleSheetImpl();  if (nsnull == it) { return NS_ERROR_OUT_OF_MEMORY; }  NS_ADDREF(it); *aInstancePtrResult = it;
*aInstancePtrResult = sheet;
  NS_NewHTMLCSSStyleSheet(nsIHTMLCSSStyleSheet** aInstancePtrResult){  if (aInstancePtrResult == nsnull) {    return NS_ERROR_NULL_POINTER;  }  HTMLCSSStyleSheetImpl*  it = new HTMLCSSStyleSheetImpl();  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  NS_ADDREF(it);  *aInstancePtrResult = it;  return NS_OK;}