Fix for bug 6069. The ownerDocument for a Document node is now null.
git-svn-id: svn://10.0.0.236/trunk@30646 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2139,7 +2139,8 @@ nsDocument::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetOwnerDocument(nsIDOMDocument** aOwnerDocument)
|
||||
{
|
||||
return QueryInterface(kIDOMDocumentIID, (void **)aOwnerDocument);
|
||||
*aOwnerDocument = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsDocument::GetListenerManager(nsIEventListenerManager **aInstancePtrResult)
|
||||
|
||||
@@ -2139,7 +2139,8 @@ nsDocument::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
||||
NS_IMETHODIMP
|
||||
nsDocument::GetOwnerDocument(nsIDOMDocument** aOwnerDocument)
|
||||
{
|
||||
return QueryInterface(kIDOMDocumentIID, (void **)aOwnerDocument);
|
||||
*aOwnerDocument = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsDocument::GetListenerManager(nsIEventListenerManager **aInstancePtrResult)
|
||||
|
||||
Reference in New Issue
Block a user