*aInstancePtrResult = sheet;
HTMLCSSStyleSheetImpl*  it = new HTMLCSSStyleSheetImpl();  if (nsnull == it) { return NS_ERROR_OUT_OF_MEMORY; }  NS_ADDREF(it); *aInstancePtrResult = it;
NS_NewHTMLCSSStyleSheet(nsIHTMLCSSStyleSheet** aInstancePtrResult,                        nsIURI* aURL, nsIDocument* aDocument){  nsresult rv;  nsIHTMLCSSStyleSheet* sheet;  if (NS_FAILED(rv = NS_NewHTMLCSSStyleSheet(&sheet)))    return rv;  if (NS_FAILED(rv = sheet->Init(aURL, aDocument))) {    NS_RELEASE(sheet);    return rv;  }  *aInstancePtrResult = sheet;  return NS_OK;}