diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 56b40fa5646..3b137ea6351 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -1371,7 +1371,7 @@ nsCSSFrameConstructor::CreateGeneratedFrameFor(nsIPresContext* aPresContex nimgr->GetNodeInfo(nsHTMLAtoms::img, nsnull, kNameSpaceID_None, *getter_AddRefs(nodeInfo)); - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID,&rv)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID,&rv)); NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr content; diff --git a/mozilla/layout/forms/nsComboboxControlFrame.cpp b/mozilla/layout/forms/nsComboboxControlFrame.cpp index 2f7f083da0a..ef8b81d1e83 100644 --- a/mozilla/layout/forms/nsComboboxControlFrame.cpp +++ b/mozilla/layout/forms/nsComboboxControlFrame.cpp @@ -2240,7 +2240,7 @@ nsComboboxControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext, aChildList.AppendElement(labelContent); // create button which drops the list down - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID)); if (ef) { nsCOMPtr content; result = ef->CreateInstanceByTag(nodeInfo,getter_AddRefs(content)); diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index b437c4f4bce..c23726b08ff 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -131,7 +131,7 @@ nsFileControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext, nimgr->GetNodeInfo(nsHTMLAtoms::input, nsnull, kNameSpaceID_None, *getter_AddRefs(nodeInfo)); - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID,&rv)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID,&rv)); NS_ENSURE_SUCCESS(rv, rv); // Create the text content diff --git a/mozilla/layout/forms/nsIsIndexFrame.cpp b/mozilla/layout/forms/nsIsIndexFrame.cpp index c9a7af24fa4..7128b77bef5 100644 --- a/mozilla/layout/forms/nsIsIndexFrame.cpp +++ b/mozilla/layout/forms/nsIsIndexFrame.cpp @@ -233,7 +233,7 @@ nsIsIndexFrame::CreateAnonymousContent(nsIPresContext* aPresContext, result = doc->GetNodeInfoManager(*getter_AddRefs(nimgr)); NS_ENSURE_SUCCESS(result, result); - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID,&result)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID,&result)); NS_ENSURE_SUCCESS(result, result); // Create an hr diff --git a/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp b/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp index 2f7f083da0a..ef8b81d1e83 100644 --- a/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp @@ -2240,7 +2240,7 @@ nsComboboxControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext, aChildList.AppendElement(labelContent); // create button which drops the list down - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID)); if (ef) { nsCOMPtr content; result = ef->CreateInstanceByTag(nodeInfo,getter_AddRefs(content)); diff --git a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp index b437c4f4bce..c23726b08ff 100644 --- a/mozilla/layout/html/forms/src/nsFileControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsFileControlFrame.cpp @@ -131,7 +131,7 @@ nsFileControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext, nimgr->GetNodeInfo(nsHTMLAtoms::input, nsnull, kNameSpaceID_None, *getter_AddRefs(nodeInfo)); - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID,&rv)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID,&rv)); NS_ENSURE_SUCCESS(rv, rv); // Create the text content diff --git a/mozilla/layout/html/forms/src/nsIsIndexFrame.cpp b/mozilla/layout/html/forms/src/nsIsIndexFrame.cpp index c9a7af24fa4..7128b77bef5 100644 --- a/mozilla/layout/html/forms/src/nsIsIndexFrame.cpp +++ b/mozilla/layout/html/forms/src/nsIsIndexFrame.cpp @@ -233,7 +233,7 @@ nsIsIndexFrame::CreateAnonymousContent(nsIPresContext* aPresContext, result = doc->GetNodeInfoManager(*getter_AddRefs(nimgr)); NS_ENSURE_SUCCESS(result, result); - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID,&result)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID,&result)); NS_ENSURE_SUCCESS(result, result); // Create an hr diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 56b40fa5646..3b137ea6351 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -1371,7 +1371,7 @@ nsCSSFrameConstructor::CreateGeneratedFrameFor(nsIPresContext* aPresContex nimgr->GetNodeInfo(nsHTMLAtoms::img, nsnull, kNameSpaceID_None, *getter_AddRefs(nodeInfo)); - nsCOMPtr ef(do_CreateInstance(kHTMLElementFactoryCID,&rv)); + nsCOMPtr ef(do_GetService(kHTMLElementFactoryCID,&rv)); NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr content;