nsCOMPtr<nsIAtom> atomSearchBackward = nsDontQueryInterface<nsIAtom>( NS_NewAtom("searchbackward") );
nsCOMPtr<nsIAtom> atomSearchBackward = nsDontQueryInterface<nsIAtom>( NS_NewAtom("searchBackward") );
nsFindDialog::OnFind( nsIContent *aContent ) {    if ( mWebShell && mContext ) {        // Get arguments and store into the search context.        nsCOMPtr<nsIAtom> atomKey = nsDontQueryInterface<nsIAtom>( NS_NewAtom("key") );        aContent->GetAttribute( kNameSpaceID_None, atomKey, mContext->mSearchString );        nsCOMPtr<nsIAtom> atomIgnoreCase = nsDontQueryInterface<nsIAtom>( NS_NewAtom("ignorecase") );        aContent->GetAttribute( kNameSpaceID_None, atomIgnoreCase, mContext->mIgnoreCase );        nsCOMPtr<nsIAtom> atomSearchBackward = nsDontQueryInterface<nsIAtom>( NS_NewAtom("searchbackward") );        aContent->GetAttribute( kNameSpaceID_None, atomSearchBackward, mContext->mSearchBackward );        // Search for next occurrence.        OnNext();    }}