eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@164735 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -699,9 +699,7 @@ nsSubDocumentFrame::CreateViewAndWidget(nsContentType aContentType)
|
||||
{
|
||||
// create, init, set the parent of the view
|
||||
nsIView* innerView;
|
||||
nsresult rv = nsComponentManager::CreateInstance(kCViewCID, nsnull,
|
||||
NS_GET_IID(nsIView),
|
||||
(void **)&innerView);
|
||||
nsresult rv = CallCreateInstance(kCViewCID, &innerView);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_ERROR("Could not create inner view");
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user