*aInstancePtrResult = sheet;
CSSStyleSheetImpl  *it = new CSSStyleSheetImpl();  if (nsnull == it) { return NS_ERROR_OUT_OF_MEMORY; }  NS_ADDREF(it); *aInstancePtrResult = it;
NS_NewCSSStyleSheet(nsICSSStyleSheet** aInstancePtrResult, nsIURI* aURL){  nsICSSStyleSheet* sheet;  nsresult rv;  if (NS_FAILED(rv = NS_NewCSSStyleSheet(&sheet)))    return rv;  if (NS_FAILED(rv = sheet->SetURL(aURL))) {    NS_RELEASE(sheet);    return rv;  }  *aInstancePtrResult = sheet;  return NS_OK;}