Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz.

git-svn-id: svn://10.0.0.236/trunk@179982 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterv%propagandism.org
2005-09-11 10:08:43 +00:00
parent 8f39da2e1d
commit b64b04886f
45 changed files with 151 additions and 198 deletions

View File

@@ -430,8 +430,7 @@ nsHTMLFragmentContentSink::OpenContainer(const nsIParserNode& aNode)
kNameSpaceID_None,
getter_AddRefs(nodeInfo));
} else {
nsIParserService* parserService =
nsContentUtils::GetParserServiceWeakRef();
nsIParserService* parserService = nsContentUtils::GetParserService();
if (!parserService)
return NS_ERROR_OUT_OF_MEMORY;
@@ -505,8 +504,7 @@ nsHTMLFragmentContentSink::AddLeaf(const nsIParserNode& aNode)
nsCOMPtr<nsIContent> content;
nsHTMLTag nodeType = nsHTMLTag(aNode.GetNodeType());
nsIParserService* parserService =
nsContentUtils::GetParserServiceWeakRef();
nsIParserService* parserService = nsContentUtils::GetParserService();
if (!parserService)
return NS_ERROR_OUT_OF_MEMORY;