if ( aContext && aNewDocument ) {
if ( aContext && aNewWebShell ) {
nsFindComponent::ResetContext( nsISupports *aContext,                               nsIDocument *aNewDocument ) {    nsresult rv = NS_OK;    if ( aContext && aNewDocument ) {        // Pass on the new document to the context.        Context *context = (Context*)aContext;        context->Reset( aNewDocument );    } else {        rv = NS_ERROR_NULL_POINTER;    }    return rv;}