Not part of build. Type ahead find. More cleanup

This commit is contained in:
aaronl%netscape.com 2002-08-19 04:44:22 +00:00
Родитель 0692fa584f
Коммит 4230e70209
2 изменённых файлов: 8 добавлений и 14 удалений

Просмотреть файл

@ -262,12 +262,9 @@ nsTypeAheadFind::PrefsReset(const char* aPrefName, void* instance_data)
}
PRBool wasTypeAheadOn = typeAheadFind->mIsTypeAheadOn;
PRBool temp_bool;
prefs->GetBoolPref("accessibility.typeaheadfind",
&temp_bool);
typeAheadFind->mIsTypeAheadOn = temp_bool;
&typeAheadFind->mIsTypeAheadOn);
if (typeAheadFind->mIsTypeAheadOn != wasTypeAheadOn) {
nsCOMPtr<nsIWebProgress> progress =
@ -305,19 +302,16 @@ nsTypeAheadFind::PrefsReset(const char* aPrefName, void* instance_data)
}
prefs->GetBoolPref("accessibility.typeaheadfind.linksonly",
&temp_bool);
typeAheadFind->mLinksOnlyPref = temp_bool;
&typeAheadFind->mLinksOnlyPref);
prefs->GetBoolPref("accessibility.typeaheadfind.startlinksonly",
&temp_bool);
typeAheadFind->mStartLinksOnlyPref = temp_bool;
&typeAheadFind->mStartLinksOnlyPref);
prefs->GetIntPref("accessibility.typeaheadfind.timeout",
&typeAheadFind->mTimeoutLength);
prefs->GetBoolPref("accessibility.browsewithcaret",
&temp_bool);
typeAheadFind->mCaretBrowsingOn = temp_bool;
&typeAheadFind->mCaretBrowsingOn);
return 0; // PREF_OK
}

Просмотреть файл

@ -160,11 +160,11 @@ protected:
// Current find state
nsString mTypeAheadBuffer;
PRPackedBool mLinksOnlyPref;
PRPackedBool mStartLinksOnlyPref;
PRBool mLinksOnlyPref;
PRBool mStartLinksOnlyPref;
PRPackedBool mLinksOnly;
PRPackedBool mIsTypeAheadOn;
PRPackedBool mCaretBrowsingOn;
PRBool mIsTypeAheadOn;
PRBool mCaretBrowsingOn;
PRPackedBool mLiteralTextSearchOnly;
PRPackedBool mDontTryExactMatch;
PRInt32 mRepeatingMode;