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

Issue 2235643002: Code cleanup related to unified text checker (Closed)

Created:
4 years, 4 months ago by Xiaocheng
Modified:
4 years, 4 months ago
CC:
aboxhall, aboxhall+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, groby+blinkspell_chromium.org, jam, je_julie, kinuko+watch, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nektar+watch_chromium.org, nektarios, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@EnableUnifiedTextCheckerByDefault
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Code cleanup related to unified text checker Unified text checker is always enabled in chrome, and never assumed to be disabled in any test case. Hence, this patch removes: - All code conditioning on unified text checker - Dead code assuming unified text checker is disabled - The switch |unifiedTextCheckerEnabled| from Settings This patch also simplifies code related to conditioning of isContinuousSpellCheckingEnabled() in SpellChecker.cpp, given that unified text checker is always enabled. The following layout tests are marked as NeedsRebaseline because their pixel results are affected by the appearance of spelling markers after enabling unified text checker. They do not explicitly test any functionality of spell checker, though: - fast/dom/blur-contenteditable.html - fast/inline-block/14498-positionForCoordinates.html - fast/repaint/inline-outline-repaint.html - fast/dom/focus-contenteditable.html - virtual/prefer_compositing_to_lcd_text/compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html - fast/forms/text/input-double-click-selection-gap-bug.html - compositing/overflow/do-not-paint-outline-into-composited-scrolling-contents.html BUG=633509 TEST=n/a; no behavior change, but several test files are changed Committed: https://crrev.com/accb28ab54cbdf525c3e319c3857a492bb27f04c Cr-Commit-Position: refs/heads/master@{#412164}

Patch Set 1 #

Patch Set 2 : Remove dead code in TextCheckingHelper.h/cpp #

Patch Set 3 : Rebased #

Patch Set 4 : Rebased #

Patch Set 5 : Rebased on removal of grammar-checking code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -346 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/accessibility/misspellings.html View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/append-node-under-document.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/execCommand/append-node-under-document-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/design-mode-spellcheck-off.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/grammar.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/grammar-edit-word.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi-composited.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/inline_spelling_markers.html View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/mark-empty-crash.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/markers.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/markers-input-type-text.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/resources/util.js View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.js View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.js View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-hasspellingmarker.js View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async-mutation.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async-remove-frame.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-attribute.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-disable-enable.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-multiframe.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-sync.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-mixed-editable-crash.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spellcheck-mixed-editable-long-text-crash.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-backward.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-huge-text.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-linebreak.html View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-marker-description.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/spelling/spelling-unified-emulation.html View 2 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/text-iterator/backward-textiterator-first-letter-crash.html View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Text/normalize-crash-in-spell-checker.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h View 3 chunks +2 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 2 3 4 10 chunks +48 lines, -133 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp View 1 2 3 4 2 chunks +0 lines, -89 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 8 chunks +0 lines, -8 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 47 (31 generated)
Xiaocheng
PTAL.
4 years, 4 months ago (2016-08-12 05:46:43 UTC) #24
tkent
third_party/WebKit lgtm
4 years, 4 months ago (2016-08-12 06:42:00 UTC) #27
ncarter (slow)
content lgtm
4 years, 4 months ago (2016-08-12 16:48:01 UTC) #28
Xiaocheng
Thanks.
4 years, 4 months ago (2016-08-12 22:32:00 UTC) #30
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/2235643002/80001
4 years, 4 months ago (2016-08-12 22:33:02 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/237474)
4 years, 4 months ago (2016-08-12 22:47:14 UTC) #33
Xiaocheng
+ochang for ipc security review
4 years, 4 months ago (2016-08-12 23:05:38 UTC) #35
Oliver Chang
ipc lgtm
4 years, 4 months ago (2016-08-15 19:10:50 UTC) #36
Xiaocheng
Thanks!
4 years, 4 months ago (2016-08-15 23:43:19 UTC) #38
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/2235643002/80001
4 years, 4 months ago (2016-08-15 23:43:46 UTC) #39
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-16 04:12:49 UTC) #40
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/accb28ab54cbdf525c3e319c3857a492bb27f04c Cr-Commit-Position: refs/heads/master@{#412164}
4 years, 4 months ago (2016-08-16 04:15:08 UTC) #42
timvolodine
On 2016/08/16 04:15:08, commit-bot: I haz the power wrote: > Patchset 5 (id:??) landed as ...
4 years, 4 months ago (2016-08-19 13:58:54 UTC) #44
Xiaocheng
On 2016/08/19 at 13:58:54, timvolodine wrote: > On 2016/08/16 04:15:08, commit-bot: I haz the power ...
4 years, 4 months ago (2016-08-22 01:53:04 UTC) #45
timvolodine
On 2016/08/22 01:53:04, Xiaocheng wrote: > On 2016/08/19 at 13:58:54, timvolodine wrote: > > On ...
4 years, 4 months ago (2016-08-23 14:30:07 UTC) #46
Xiaocheng
4 years, 4 months ago (2016-08-24 02:15:47 UTC) #47
Message was sent while issue was closed.
On 2016/08/23 at 14:30:07, timvolodine wrote:
> On 2016/08/22 01:53:04, Xiaocheng wrote:
> > On 2016/08/19 at 13:58:54, timvolodine wrote:
> > > On 2016/08/16 04:15:08, commit-bot: I haz the power wrote:
> > > > Patchset 5 (id:??) landed as
> > > > https://crrev.com/accb28ab54cbdf525c3e319c3857a492bb27f04c
> > > > Cr-Commit-Position: refs/heads/master@{#412164}
> > > 
> > > unified_textchecker_enabled is actually false by default in android
webview.
> > Does this have any performance consequences?
> > > I guess we are considering enabling spellchecking in webview anyway so
this
> > may still be ok.
> > 
> > Sorry but I can't find the code where the flag is set. Could you provide a
link?
> > 
> 
> It was only set to true in chrome_content_browser_client.cc (which you
removed) but it's false by default.
> 
> > IMO enabling unified text checker only improves the performance. The code
path
> > with unified text checker disabled invokes synchronous spell checking, which
is
> > something we are trying to get rid of (see crbug.com/517298); The code path
with
> > it enabled does things in a semi-asynchronous way: requests are generated
> > synchronously but resolved asynchronously.
> > 
> > ps. "unified text checker" is a really bad legacy name that no longer
reflects
> > what it does...
> 
> right, I don't know what unified spellchecker exactly used to do but at the
time it seemed like a number of code paths exited early due to it being disabled
(as in webview). Hence my wondering if it unnecessarily invokes more code now on
webview. However if we enable spellchecking in webview as well it may be needed
anyway..

Agreed.

Powered by Google App Engine
This is Rietveld 408576698