Chromium Code Reviews
DescriptionCode cleanup in blink::SpellChecker
This patch consists of the following cleanup:
1. In markMisspellingsAfterLineBreak(), is does not make sense to check
only grammar but not spelling. The behavior is changed to do nothing if
isContinuousSpellCheckingEnabled() returns false.
2. Parameter |bool markGrammar| is removed from markMisspellingsAndBadGrammar()
because its value is always equal to isContinuousSpellCheckingEnabled() at
every call site.
3. Parameter |TextCheckingTypeMask textCheckingOptions| is removed from
markAllMisspellingsAndBadGrammarInRanges() and
chunkAndMarkAllMisspellingsAndBadGrammar() because its value is the same
constant at all call sites.
4. The useless member function resolveTextCheckingTypeMask() is removed, and
some other convoluted code is simplified.
BUG=619452
TEST=n/a; no visible change
Committed: https://crrev.com/b9f7be89f809441cba6aa4ff88e39bc967c0bcd5
Cr-Commit-Position: refs/heads/master@{#410290}
Patch Set 1 #
Messages
Total messages: 15 (10 generated)
|
||||||||||||||||||||||||||||