Fix for bug 564114 (Crash [@ nsINode::CompareDocumentPosition] passing null). r=bz.

This commit is contained in:
Peter Van der Beken
2010-05-06 21:26:35 +02:00
parent 77d15b53b3
commit 8795426f7e
4 changed files with 14 additions and 7 deletions

View File

@@ -999,11 +999,8 @@ nsNode3Tearoff::CompareDocumentPosition(nsIDOMNode* aOther,
PRUint16* aReturn)
{
nsCOMPtr<nsINode> other = do_QueryInterface(aOther);
NS_ENSURE_ARG(other);
*aReturn = mNode->CompareDocumentPosition(other);
return NS_OK;
return mNode->CompareDocumentPosition(other, aReturn);
}
NS_IMETHODIMP