зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1700051: part 19) `const`-qualify and rename `mozInlineSpellChecker::SpellCheckSelectionIsFull`. r=smaug
Depends on D109895 Differential Revision: https://phabricator.services.mozilla.com/D109896
This commit is contained in:
Родитель
217df64f78
Коммит
b8bb3ce56e
|
@ -1288,7 +1288,7 @@ nsresult mozInlineSpellChecker::DoSpellCheck(
|
|||
return NS_ERROR_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
if (SpellCheckSelectionIsFull()) {
|
||||
if (IsSpellCheckSelectionFull()) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -1493,7 +1493,7 @@ void mozInlineSpellChecker::CheckCurrentWordsNoSuggest(
|
|||
|
||||
AutoChangeNumPendingSpellChecks pendingChecks(self, -1);
|
||||
|
||||
if (self->SpellCheckSelectionIsFull()) {
|
||||
if (self->IsSpellCheckSelectionFull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1684,7 +1684,7 @@ nsresult mozInlineSpellChecker::AddRange(Selection* aSpellCheckSelection,
|
|||
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if (!SpellCheckSelectionIsFull()) {
|
||||
if (!IsSpellCheckSelectionFull()) {
|
||||
IgnoredErrorResult err;
|
||||
aSpellCheckSelection->AddRangeAndSelectFramesAndNotifyListeners(*aRange,
|
||||
err);
|
||||
|
|
|
@ -253,7 +253,7 @@ class mozInlineSpellChecker final : public nsIInlineSpellChecker,
|
|||
RemoveRange(mozilla::dom::Selection* aSpellCheckSelection, nsRange* aRange);
|
||||
MOZ_CAN_RUN_SCRIPT_BOUNDARY nsresult
|
||||
AddRange(mozilla::dom::Selection* aSpellCheckSelection, nsRange* aRange);
|
||||
bool SpellCheckSelectionIsFull() {
|
||||
bool IsSpellCheckSelectionFull() const {
|
||||
return mNumWordsInSpellSelection >= mMaxNumWordsInSpellSelection;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче