Closed Bug 1708422 Opened 4 years ago Closed 4 years ago

Fortify code around `mozInlineSpellChecker::DoSpellCheck`

Categories

(Core :: Spelling checker, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: mbrodesser, Assigned: mbrodesser)

References

Details

Attachments

(21 files, 3 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
No description provided.
Attachment #9219185 - Attachment description: Bug 1708422: part 1) Factor `mozInlineSpellChecker::AddChosenRanges` out. r=smaug → Bug 1708422: part 1) Factor `mozInlineSpellChecker::AddRangesForMisspelledWords` out. r=smaug
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/54bd4ad99198 part 1) Factor `mozInlineSpellChecker::AddRangesForMisspelledWords` out. r=smaug https://hg.mozilla.org/integration/autoland/rev/33da227d7651 part 2) Rename `mozInlineSpellChecker::CheckCurrentWordsNoSuggest` to `mozInlineSpellChecker::CheckWordsAndAddRangesForMisspellings`. r=smaug
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---

Should help to simplify it. Please read the following reviews before
commenting on this one.

Depends on D114095

Should help to simplify it. Please read the following reviews before
commenting on this one.

Depends on D114097

Simplifies mozInlineSpellChecker::SpellCheckerTimeSlice::Execute.

Depends on D114101

Attachment #9219833 - Attachment is obsolete: true
Attachment #9219834 - Attachment is obsolete: true

Will add :smaug as reviewer as soon as he's back from vacation.

Attachment #9220305 - Attachment is obsolete: true
Attachment #9219835 - Attachment description: Bug 1708422: part 3) Add some documentation to `mozInlineSpellChecker::CheckWordsAndAddRangesForMisspellings` → Bug 1708422: part 3) Add some documentation to `mozInlineSpellChecker::CheckWordsAndAddRangesForMisspellings`. r=smaug
Attachment #9219836 - Attachment description: Bug 1708422: part 4) Break out method object for `mozInlineSpellChecker::DoSpellCheck` → Bug 1708422: part 4) Break out method object for `mozInlineSpellChecker::DoSpellCheck`. r=smaug
Attachment #9219837 - Attachment description: Bug 1708422: part 5) Surround statements in `mozInlineSpellChecker::SpellCheckerTimeSlice::Execute` with curly braces → Bug 1708422: part 5) Surround statements in `mozInlineSpellChecker::SpellCheckerTimeSlice::Execute` with curly braces. r=smaug
Attachment #9219838 - Attachment description: Bug 1708422: part 6) Change some pointer members of `mozInlineSpellChecker::SpellCheckerTimeSlice` to references → Bug 1708422: part 6) Change some pointer members of `mozInlineSpellChecker::SpellCheckerTimeSlice` to references. r=smaug
Attachment #9219839 - Attachment description: Bug 1708422: part 7) Annotate `mozInlineSpellChecker::SpellCheckerTimeSlice` as `MOZ_STACK_CLASS` → Bug 1708422: part 7) Annotate `mozInlineSpellChecker::SpellCheckerTimeSlice` as `MOZ_STACK_CLASS`. r=smaug
Attachment #9219840 - Attachment description: Bug 1708422: part 8) Move `mozInlineSpellChecker::CheckWordsAndAddRangesForMisspellings` → Bug 1708422: part 8) Move `mozInlineSpellChecker::CheckWordsAndAddRangesForMisspellings`. r=smaug
Attachment #9219841 - Attachment description: Bug 1708422: part 9) Declare `mozInlineSpellChecker::ShouldSpellCheckNode` `static` → Bug 1708422: part 9) Declare `mozInlineSpellChecker::ShouldSpellCheckNode` `static`. r=smaug
Attachment #9219842 - Attachment description: Bug 1708422: part 10) Factor `ShouldSpellCheckRange` out → Bug 1708422: part 10) Factor `ShouldSpellCheckRange` out. r=smaug
Attachment #9219843 - Attachment description: Bug 1708422: part 11) Remove unnecessary block scope in `mozInlineSpellChecker::SpellCheckerTimeSlice::Execute` → Bug 1708422: part 11) Remove unnecessary block scope in `mozInlineSpellChecker::SpellCheckerTimeSlice::Execute`. r=smaug
Attachment #9220306 - Attachment description: Bug 1708422: part 12) Move some code into `mozInlineSpellChecker::SpellCheckerTimeSlice::ShouldSpellCheckRange` → Bug 1708422: part 12) Move some code into `mozInlineSpellChecker::SpellCheckerTimeSlice::ShouldSpellCheckRange`. r=smaug
Attachment #9220307 - Attachment description: Bug 1708422: part 13) Factor code out to `mozInlineSpellChecker::SpellCheckerTimeSlice::RemoveRanges` → Bug 1708422: part 13) Factor code out to `mozInlineSpellChecker::SpellCheckerTimeSlice::RemoveRanges`. r=smaug
Attachment #9220308 - Attachment description: Bug 1708422: part 14) Extend documentation of `mozInlineSpellChecker::SpellCheckerTimeSlice::CheckWordsAndAddRangesForMisspellings` → Bug 1708422: part 14) Extend documentation of `mozInlineSpellChecker::SpellCheckerTimeSlice::CheckWordsAndAddRangesForMisspellings`. r=smaug
Attachment #9220309 - Attachment description: Bug 1708422: part 15) Update documentation of `Selection::GetRangesForInterval` → Bug 1708422: part 15) Update documentation of `Selection::GetRangesForInterval`. r=smaug
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/91483132916f part 3) Add some documentation to `mozInlineSpellChecker::CheckWordsAndAddRangesForMisspellings`. r=smaug
Attachment #9222376 - Attachment description: Bug 1708422: part 16) Rename to `mozInlineSpellChecker::SpellCheckerTimeSlice` to `mozInlineSpellChecker::SpellCheckerSlice`. r=smaug → Bug 1708422: part 16) Rename `mozInlineSpellChecker::SpellCheckerTimeSlice` to `mozInlineSpellChecker::SpellCheckerSlice`. r=smaug
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df784a865e38 part 4) Break out method object for `mozInlineSpellChecker::DoSpellCheck`. r=smaug https://hg.mozilla.org/integration/autoland/rev/54be73d69bf4 part 5) Surround statements in `mozInlineSpellChecker::SpellCheckerTimeSlice::Execute` with curly braces. r=smaug https://hg.mozilla.org/integration/autoland/rev/7d0b7c8641ad part 6) Change some pointer members of `mozInlineSpellChecker::SpellCheckerTimeSlice` to references. r=smaug https://hg.mozilla.org/integration/autoland/rev/554e8a60c7ed part 7) Annotate `mozInlineSpellChecker::SpellCheckerTimeSlice` as `MOZ_STACK_CLASS`. r=smaug https://hg.mozilla.org/integration/autoland/rev/936a9c00a51c part 8) Move `mozInlineSpellChecker::CheckWordsAndAddRangesForMisspellings`. r=smaug https://hg.mozilla.org/integration/autoland/rev/0e8fbb1c3f35 part 9) Declare `mozInlineSpellChecker::ShouldSpellCheckNode` `static`. r=smaug https://hg.mozilla.org/integration/autoland/rev/9571e1990895 part 10) Factor `ShouldSpellCheckRange` out. r=smaug https://hg.mozilla.org/integration/autoland/rev/2122e4d660c6 part 11) Remove unnecessary block scope in `mozInlineSpellChecker::SpellCheckerTimeSlice::Execute`. r=smaug https://hg.mozilla.org/integration/autoland/rev/dfd6996a67fa part 12) Move some code into `mozInlineSpellChecker::SpellCheckerTimeSlice::ShouldSpellCheckRange`. r=smaug https://hg.mozilla.org/integration/autoland/rev/5a0ccf5c7dc4 part 13) Factor code out to `mozInlineSpellChecker::SpellCheckerTimeSlice::RemoveRanges`. r=smaug https://hg.mozilla.org/integration/autoland/rev/101827a7d1a4 part 14) Extend documentation of `mozInlineSpellChecker::SpellCheckerTimeSlice::CheckWordsAndAddRangesForMisspellings`. r=smaug https://hg.mozilla.org/integration/autoland/rev/3495c7bfdcee part 15) Update documentation of `Selection::GetRangesForInterval`. r=smaug https://hg.mozilla.org/integration/autoland/rev/e5f57b354d88 part 16) Rename `mozInlineSpellChecker::SpellCheckerTimeSlice` to `mozInlineSpellChecker::SpellCheckerSlice`. r=smaug https://hg.mozilla.org/integration/autoland/rev/06ca014ca2bf part 17) Rename `words` to `normalizedWords` in `mozInlineSpellChecker::SpellCheckerSlice::Execute`. r=smaug
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/82b803787c11 part 18) Factor `mozInlineSpellChecker::SpellCheckerSlice::IsInNoCheckRange` out. r=smaug
Attachment #9222785 - Attachment description: Bug 1708422: part 19) Replace return value and output arguments with a single return value in `mozInlineSpellWordUtil::GetNextWord`. r=smaug → Bug 1708422: part 19) Replace output arguments with a single argument in `mozInlineSpellWordUtil::GetNextWord`. r=smaug
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d997e78d89f5 part 19) Replace output arguments with a single argument in `mozInlineSpellWordUtil::GetNextWord`. r=smaug https://hg.mozilla.org/integration/autoland/rev/4a6ddb682476 part 20) Const-qualify some variables in `mozInlineSpellChecker::SpellCheckerSlice::Execute`. r=smaug https://hg.mozilla.org/integration/autoland/rev/cc8afd010568 part 21) Reduce scope of `erv` variable in `mozInlineSpellChecker::SpellCheckerSlice::Execute`. r=smaug
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: