RDFGenericBuilderImpl::SetDocument(nsIRDFDocument* aDocument)
RDFGenericBuilderImpl::SetDocument(nsIXULDocument* aDocument)
RDFGenericBuilderImpl::SetDocument(nsIRDFDocument* aDocument){    // note: null now allowed, it indicates document going away    mDocument = aDocument; // not refcounted    if (aDocument)    {    	if (nsnull == mTimer)    	{		NS_VERIFY(NS_SUCCEEDED(NS_NewTimer(&mTimer)), "couldn't get timer");		if (mTimer)		{			mTimer->Init(this, /* PR_TRUE, */ 1L);		}	}    }    else    {    	if (mTimer)    	{    		mTimer->Cancel();    		NS_RELEASE(mTimer);    		mTimer = nsnull;    	}    }    return NS_OK;}