if (!mEnabled) return NS_ERROR_NOT_AVAILABLE;
CSSLoaderImpl::LoadInlineStyle(nsIContent* aElement,                               nsIUnicharInputStream* aIn,                                const nsString& aTitle,                                const nsString& aMedia,                                PRInt32 aDefaultNameSpaceID,                               PRInt32 aDocIndex,                               nsIParser* aParserToUnblock,                               PRBool& aCompleted,                               nsICSSLoaderObserver* aObserver){  NS_ASSERTION(mDocument, "not initialized");  if (! mDocument) {    return NS_ERROR_NOT_INITIALIZED;  }  // XXX need to add code to cancel any pending sheets for element  nsresult result = NS_ERROR_NULL_POINTER;  if (aIn) {    nsIURI* docURL;    mDocument->GetBaseURL(docURL);    SheetLoadData* data = new SheetLoadData(this, docURL, aTitle, aMedia, aDefaultNameSpaceID,                                            aElement,                                            aDocIndex, aParserToUnblock,                                            PR_TRUE, aObserver);    if (data == nsnull) {      result = NS_ERROR_OUT_OF_MEMORY;    }    else {      NS_ADDREF(data);      nsICSSStyleSheet* sheet;      result = ParseSheet(aIn, data, aCompleted, sheet);      NS_IF_RELEASE(sheet);      if ((! aCompleted) && (aParserToUnblock)) {        data->mDidBlockParser = PR_TRUE;      }    }    NS_RELEASE(docURL);  }  return result;}