Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Issue 2220493002: Code cleanup in blink::SpellChecker (Closed)

Created:
4 years, 4 months ago by Xiaocheng
Modified:
4 years, 4 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Code 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -63 lines) Patch
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 10 chunks +22 lines, -59 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
Xiaocheng
PTAL. This patch is a conservative refactoring to reduce the code complexity in SpellChecker.cpp as ...
4 years, 4 months ago (2016-08-05 12:09:13 UTC) #9
yosin_UTC9
lgtm
4 years, 4 months ago (2016-08-08 01:12:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2220493002/1
4 years, 4 months ago (2016-08-08 01:12:46 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-08 02:22:22 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 02:26:15 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/b9f7be89f809441cba6aa4ff88e39bc967c0bcd5
Cr-Commit-Position: refs/heads/master@{#410290}

Powered by Google App Engine
This is Rietveld 408576698