nsChangeHint uselessHint = NS_STYLE_HINT_NONE; result = cssParser->ParseAndAppendDeclaration(aDecl, baseURI, decl, aParseOnlyOneDecl, &uselessHint, aClearOldDecl);  if (NS_SUCCEEDED(result)) { result = SetCSSDeclaration(decl, PR_TRUE, PR_TRUE); }  if (cssLoader) { cssLoader->RecycleParser(cssParser);
if (NS_SUCCEEDED(result)) { PRInt32 hint; result = cssParser->ParseAndAppendDeclaration(aDecl, baseURI, decl, &hint); if (NS_SUCCEEDED(result)) { if (doc) { doc->AttributeChanged(mContent, kNameSpaceID_None, nsHTMLAtoms::style, hint); } } if (cssLoader) { cssLoader->RecycleParser(cssParser); } else { NS_RELEASE(cssParser); } } NS_IF_RELEASE(cssLoader); NS_IF_RELEASE(baseURI); NS_IF_RELEASE(doc); NS_RELEASE(decl);
nsDOMCSSAttributeDeclaration::ParseDeclaration(const nsAString& aDecl,                                               PRBool aParseOnlyOneDecl,                                               PRBool aClearOldDecl){  nsCSSDeclaration* decl;  nsresult result = GetCSSDeclaration(&decl, PR_TRUE);  if (!decl) {    return result;  }  nsCOMPtr<nsICSSLoader> cssLoader;  nsCOMPtr<nsICSSParser> cssParser;  nsCOMPtr<nsIURI> baseURI;  result = GetCSSParsingEnvironment(mContent,                                    getter_AddRefs(baseURI),                                    getter_AddRefs(cssLoader),                                    getter_AddRefs(cssParser));  if (NS_FAILED(result)) {    return result;  }  nsChangeHint uselessHint = NS_STYLE_HINT_NONE;  result = cssParser->ParseAndAppendDeclaration(aDecl, baseURI, decl,                                                aParseOnlyOneDecl,                                                &uselessHint,                                                aClearOldDecl);    if (NS_SUCCEEDED(result)) {    result = SetCSSDeclaration(decl, PR_TRUE, PR_TRUE);  }  if (cssLoader) {    cssLoader->RecycleParser(cssParser);  }  return result;}