nsICSSLoaderObserver* aObserver, PRBool* aCompleted, PRBool* aIsAlternate)
PRBool& aCompleted, nsICSSLoaderObserver* aObserver)
CSSLoaderImpl::LoadInlineStyle(nsIContent* aElement,                               nsIUnicharInputStream* aStream,                                PRUint32 aLineNumber,                               const nsSubstring& aTitle,                               const nsSubstring& aMedia,                               nsIParser* aParserToUnblock,                               nsICSSLoaderObserver* aObserver,                               PRBool* aCompleted,                               PRBool* aIsAlternate){  LOG(("CSSLoaderImpl::LoadInlineStyle"));  NS_PRECONDITION(aStream, "Must have a stream to parse!");  NS_ASSERTION(mParsingDatas.Count() == 0, "We're in the middle of a parse?");  *aCompleted = PR_TRUE;  if (!mEnabled) {    LOG_WARN(("  Not enabled"));    return NS_ERROR_NOT_AVAILABLE;  }  NS_ENSURE_TRUE(mDocument, NS_ERROR_NOT_INITIALIZED);  nsCOMPtr<nsIStyleSheetLinkingElement> owningElement(do_QueryInterface(aElement));  NS_ASSERTION(owningElement, "Element is not a style linking element!");    StyleSheetState state;  nsCOMPtr<nsICSSStyleSheet> sheet;  nsresult rv = CreateSheet(nsnull, aElement, PR_FALSE, state,                            getter_AddRefs(sheet));  NS_ENSURE_SUCCESS(rv, rv);  NS_ASSERTION(state == eSheetNeedsParser,               "Inline sheets should not be cached");  rv = PrepareSheet(sheet, aTitle, aMedia, nsnull, PR_FALSE,                    aIsAlternate);  NS_ENSURE_SUCCESS(rv, rv);    LOG(("  Sheet is alternate: %d", *aIsAlternate));    rv = InsertSheetInDoc(sheet, aElement, mDocument);  NS_ENSURE_SUCCESS(rv, rv);    SheetLoadData* data = new SheetLoadData(this, aTitle, aParserToUnblock,                                          nsnull, sheet, owningElement,                                          *aIsAlternate, aObserver);  if (!data) {    sheet->SetComplete();    return NS_ERROR_OUT_OF_MEMORY;  }  NS_ADDREF(data);  data->mLineNumber = aLineNumber;  // Parse completion releases the load data  rv = ParseSheet(aStream, data, *aCompleted);  NS_ENSURE_SUCCESS(rv, rv);  // If aCompleted is true, |data| may well be deleted by now.  if (!*aCompleted) {    data->mMustNotify = PR_TRUE;  }  return rv;}        