nsFindComponent::CreateContext( nsIDocument *aDocument, nsISupports **aResult ) { nsresult rv = NS_OK;
nsFindComponent::CreateContext( nsIWebShell *aWebShell, nsIEditor* aEditor, nsISupports **aResult ) {
nsFindComponent::CreateContext( nsIDocument *aDocument,                                nsISupports **aResult ) {    nsresult rv = NS_OK;    // Check for place to put result.    if ( !aResult ) {        rv = NS_ERROR_NULL_POINTER;    } else {        // Construct a new Context with this document.        *aResult = new Context( aDocument,                                mLastSearchString,                                mLastIgnoreCase,                                mLastSearchBackward );        if ( *aResult ) {            // Do the expected on behalf of caller.            (*aResult)->AddRef();        } else {            // Allocation failed.            rv = NS_ERROR_OUT_OF_MEMORY;        }    }    return rv;}