LOG(("CSSLoaderImpl::LoadAgentSheet asynchronous")); return InternalLoadAgentSheet(aURL, nsnull, aObserver);
nsresult result = NS_ERROR_NULL_POINTER; if (aURL) {  nsIInputStream* in; nsIURI* urlClone; result = aURL->Clone(&urlClone); if (NS_SUCCEEDED(result)) { result = NS_OpenURI(&in, urlClone); NS_RELEASE(urlClone); if (NS_SUCCEEDED(result)) {  nsIUnicharInputStream* uin; result = NS_NewConverterStream(&uin, nsnull, in, 0, &mCharset); if (NS_SUCCEEDED(result)) { SheetLoadData* data = new SheetLoadData(this, aURL, aObserver); if (data == nsnull) { result = NS_ERROR_OUT_OF_MEMORY; } else { NS_ADDREF(data); URLKey  key(aURL); if (aObserver == nsnull) { mLoadingSheets.Put(&key, data); result = ParseSheet(uin, data, aCompleted, aSheet); } else { result = LoadSheet(key, data); aCompleted = PR_FALSE; } } NS_RELEASE(uin); } else { fputs("CSSLoader::LoadAgentSheet - failed to get converter stream\n", stderr); } NS_RELEASE(in); } else {  char *url; aURL->GetSpec(&url); cerr << "CSSLoaderImpl::LoadAgentSheet: Load of URL '" << url << "' failed.  Error code: " << NS_ERROR_GET_CODE(result)  << "\n"; nsCRT::free(url); } } } return result;
CSSLoaderImpl::LoadAgentSheet(nsIURI* aURL,                               nsICSSLoaderObserver* aObserver){  LOG(("CSSLoaderImpl::LoadAgentSheet asynchronous"));  return InternalLoadAgentSheet(aURL, nsnull, aObserver);}