Fixing a bug.
git-svn-id: svn://10.0.0.236/trunk@23457 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -846,6 +846,16 @@ XULContentSinkImpl::Init(nsIDocument* aDocument, nsIWebShell* aWebShell, nsIRDFD
|
||||
if (! aDocument)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsCOMPtr<nsIXULChildDocument> childDocument;
|
||||
childDocument = do_QueryInterface(mDocument);
|
||||
if (childDocument != nsnull) {
|
||||
childDocument->GetFragmentRoot(&mFragmentRoot);
|
||||
if (mFragmentRoot) {
|
||||
// We're totally a subdocument. Find the root document's
|
||||
// data source and make assertions there.
|
||||
}
|
||||
}
|
||||
|
||||
NS_PRECONDITION(aDataSource != nsnull, "null ptr");
|
||||
if (! aDataSource)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
@@ -873,16 +883,6 @@ XULContentSinkImpl::Init(nsIDocument* aDocument, nsIWebShell* aWebShell, nsIRDFD
|
||||
|
||||
mState = eXULContentSinkState_InProlog;
|
||||
|
||||
nsCOMPtr<nsIXULChildDocument> childDocument;
|
||||
childDocument = do_QueryInterface(mDocument);
|
||||
if (childDocument != nsnull) {
|
||||
childDocument->GetFragmentRoot(&mFragmentRoot);
|
||||
if (mFragmentRoot) {
|
||||
// We're totally a subdocument. Find the root document's
|
||||
// data source and make assertions there.
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user