prep for fixing bug 176559 - use getService rather than createInstance so we stop creating element factories

sr=peterv/jst, r=bzbarsky
This commit is contained in:
alecf@netscape.com
2002-11-07 21:23:09 +00:00
parent cf49c55201
commit b1219d58a0
8 changed files with 8 additions and 8 deletions

View File

@@ -131,7 +131,7 @@ nsFileControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext,
nimgr->GetNodeInfo(nsHTMLAtoms::input, nsnull, kNameSpaceID_None,
*getter_AddRefs(nodeInfo));
nsCOMPtr<nsIElementFactory> ef(do_CreateInstance(kHTMLElementFactoryCID,&rv));
nsCOMPtr<nsIElementFactory> ef(do_GetService(kHTMLElementFactoryCID,&rv));
NS_ENSURE_SUCCESS(rv, rv);
// Create the text content