SheetLoadData* data = new SheetLoadData(this, aURL, sheet, syncLoad, aObserver);
SheetLoadData* data = new SheetLoadData(this, aURL, sheet, aObserver);
CSSLoaderImpl::InternalLoadAgentSheet(nsIURI* aURL,                                       nsICSSStyleSheet** aSheet,                                      nsICSSLoaderObserver* aObserver){  NS_PRECONDITION(aURL, "Must have a URI to load");  NS_PRECONDITION((!aSheet || !aObserver) && (aSheet || aObserver),                  "One or the other please, at most one");  NS_ASSERTION(mParsingDatas.Count() == 0, "We're in the middle of a parse?");  LOG_URI("  Agent uri: '%s'", aURL);    if (!mEnabled) {    LOG_WARN(("  Not enabled"));    return NS_ERROR_NOT_AVAILABLE;  }  StyleSheetState state;  nsCOMPtr<nsICSSStyleSheet> sheet;  PRBool syncLoad = (aObserver == nsnull);    nsresult rv = CreateSheet(aURL, nsnull, syncLoad, state,                            getter_AddRefs(sheet));  NS_ENSURE_SUCCESS(rv, rv);  NS_NAMED_LITERAL_STRING(empty, "");  rv = PrepareSheet(sheet, empty, empty);  NS_ENSURE_SUCCESS(rv, rv);    if (aSheet) {    *aSheet = nsnull;  }    if (state == eSheetComplete) {    LOG(("  Sheet already complete"));    if (aSheet) {      *aSheet = sheet;      NS_ADDREF(*aSheet);    } else {      aObserver->StyleSheetLoaded(sheet, PR_TRUE);    }    return NS_OK;  }  SheetLoadData* data = new SheetLoadData(this, aURL, sheet, syncLoad, aObserver);  if (!data) {    sheet->SetComplete();    return NS_ERROR_OUT_OF_MEMORY;  }    NS_ADDREF(data);  rv = LoadSheet(data, state);  if (NS_SUCCEEDED(rv) && aSheet) {    *aSheet = sheet;    NS_ADDREF(*aSheet);  }  return rv;}