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

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

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