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

Issue 21130005: Trigger spell check/remove markers if spell checker gets enabled/disabled. (Closed)

Created:
7 years, 4 months ago by pstanek
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Trigger spell check/remove markers if spell checker gets enabled/disabled. With this change when spell checker is turned off the misspelling markers disappear from the document (which is what a user expects and this currently works in chromium because UI code takes care of that - with this change it may stop). OTOH if spell checker is turned on again one would expect misspellings will appear right away - in the currently focused editable at least. This is how Gecko and Presto behave and this is what this patch does. Note it's not only about restoring old markers because content might have changed or language might have been switched. This is why new check is requested. This change may also come in handy if spell checking language is changed. It would require restarting spell checker on UI side on language change, though. Since there might be an awful lot of text in the focused editable when spell checker gets enabled, spell checking is chunked up. If asynchronous spell checker is enabled whole text is checked. Otherwise only one chunk is checked (the default chunk's size is set to 16KB but it might also be slightly bigger since all chunks are aligned to the sentence boundary). BUG=264737 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156183

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressing review comments. #

Patch Set 3 : Applying here what I've learned from other review. #

Patch Set 4 : Remove markers from all frames & avoid freeze when spell checking a lot of text. #

Patch Set 5 : copy&paste bug fixed #

Total comments: 3

Patch Set 6 : addressing review comments #

Patch Set 7 : Improvement & test for chunked spell checking. #

Total comments: 8

Patch Set 8 : Style & improvements in tests #

Total comments: 3

Patch Set 9 : Added the comment clarifying things a bit more. #

Total comments: 4

Patch Set 10 : style & expected result #

Patch Set 11 : rebase & minor WS fix in tests #

Patch Set 12 : Revert paste related changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -25 lines) Patch
A LayoutTests/editing/spelling/spellcheck-disable-enable.html View 1 2 3 4 5 6 7 1 chunk +64 lines, -0 lines 0 comments Download
A LayoutTests/editing/spelling/spellcheck-disable-enable-expected.txt View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/editing/spelling/spelling-huge-text.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
A LayoutTests/editing/spelling/spelling-huge-text-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/editing/spelling/spelling-huge-text-sync.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
A LayoutTests/editing/spelling/spelling-huge-text-sync-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/editing/Editor.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +27 lines, -13 lines 0 comments Download
M Source/core/editing/SpellCheckRequester.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -2 lines 0 comments Download
M Source/core/editing/SpellCheckRequester.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +21 lines, -8 lines 0 comments Download
M Source/web/EditorClientImpl.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
pstanek
7 years, 4 months ago (2013-07-30 20:09:12 UTC) #1
abarth-chromium
Can you add some information to the description that explains what problem this CL solves? ...
7 years, 4 months ago (2013-07-31 00:42:14 UTC) #2
pstanek
On 2013/07/31 00:42:14, abarth wrote: > Can you add some information to the description that ...
7 years, 4 months ago (2013-07-31 06:50:56 UTC) #3
abarth-chromium
Thanks, that's a great description. Would you be willing to include that in the description ...
7 years, 4 months ago (2013-07-31 06:55:06 UTC) #4
pstanek
New patch set added.
7 years, 4 months ago (2013-07-31 12:38:01 UTC) #5
pstanek
https://codereview.chromium.org/21130005/diff/1/Source/web/EditorClientImpl.cpp File Source/web/EditorClientImpl.cpp (right): https://codereview.chromium.org/21130005/diff/1/Source/web/EditorClientImpl.cpp#newcode146 Source/web/EditorClientImpl.cpp:146: if (frame) Won't this remove markers in one frame ...
7 years, 4 months ago (2013-08-12 12:21:23 UTC) #6
pstanek
On 2013/08/12 12:21:23, pstanek wrote: > https://codereview.chromium.org/21130005/diff/1/Source/web/EditorClientImpl.cpp > File Source/web/EditorClientImpl.cpp (right): > > https://codereview.chromium.org/21130005/diff/1/Source/web/EditorClientImpl.cpp#newcode146 > ...
7 years, 4 months ago (2013-08-12 15:24:49 UTC) #7
tony
morrita or rouslan should review this change as well. Where is the test case for ...
7 years, 4 months ago (2013-08-12 19:45:14 UTC) #8
pstanek
On 2013/08/12 19:45:14, tony wrote: > morrita or rouslan should review this change as well. ...
7 years, 4 months ago (2013-08-12 22:10:25 UTC) #9
pstanek
On 2013/08/12 22:10:25, pstanek wrote: > On 2013/08/12 19:45:14, tony wrote: > > morrita or ...
7 years, 4 months ago (2013-08-13 11:20:44 UTC) #10
please use gerrit instead
Great job. Please see inline comments. (Also please indent the patch description uniformly.) https://codereview.chromium.org/21130005/diff/38001/Source/core/editing/Editor.cpp File ...
7 years, 4 months ago (2013-08-13 21:54:21 UTC) #11
tony
I just looked at the test. It sounds like 8k was picked arbitrarily and seems ...
7 years, 4 months ago (2013-08-13 22:06:14 UTC) #12
pstanek
On 2013/08/13 22:06:14, tony wrote: > I just looked at the test. > > It ...
7 years, 4 months ago (2013-08-13 22:17:33 UTC) #13
pstanek
On 2013/08/13 21:54:21, Rouslan Solomakhin wrote: > Great job. Please see inline comments. (Also please ...
7 years, 4 months ago (2013-08-13 22:22:52 UTC) #14
pstanek
On 2013/08/13 22:17:33, pstanek wrote: > On 2013/08/13 22:06:14, tony wrote: > > I just ...
7 years, 4 months ago (2013-08-13 22:55:36 UTC) #15
tony
On 2013/08/13 22:55:36, pstanek wrote: > I fixed the timeout and you're right: even 1ms ...
7 years, 4 months ago (2013-08-13 23:06:19 UTC) #16
pstanek
On 2013/08/13 23:06:19, tony wrote: > On 2013/08/13 22:55:36, pstanek wrote: > > I fixed ...
7 years, 4 months ago (2013-08-14 11:49:04 UTC) #17
pstanek
On 2013/08/13 21:54:21, Rouslan Solomakhin wrote: > Great job. Please see inline comments. (Also please ...
7 years, 4 months ago (2013-08-14 11:49:21 UTC) #18
pstanek
PTAL
7 years, 4 months ago (2013-08-14 17:18:03 UTC) #19
please use gerrit instead
LGTM with a nit. https://codereview.chromium.org/21130005/diff/52001/Source/core/editing/SpellChecker.cpp File Source/core/editing/SpellChecker.cpp (right): https://codereview.chromium.org/21130005/diff/52001/Source/core/editing/SpellChecker.cpp#newcode216 Source/core/editing/SpellChecker.cpp:216: // both apply to the ...
7 years, 4 months ago (2013-08-14 17:30:27 UTC) #20
pstanek
https://codereview.chromium.org/21130005/diff/52001/Source/core/editing/SpellChecker.cpp File Source/core/editing/SpellChecker.cpp (right): https://codereview.chromium.org/21130005/diff/52001/Source/core/editing/SpellChecker.cpp#newcode221 Source/core/editing/SpellChecker.cpp:221: if (!continuation) { On 2013/08/14 17:30:28, Rouslan Solomakhin wrote: ...
7 years, 4 months ago (2013-08-14 17:36:26 UTC) #21
tony
When using the "ask google for suggestions" option, do we make a separate http request ...
7 years, 4 months ago (2013-08-14 22:55:31 UTC) #22
please use gerrit instead
On 2013/08/14 22:55:31, tony wrote: > When using the "ask google for suggestions" option, do ...
7 years, 4 months ago (2013-08-14 23:34:24 UTC) #23
tony
LGTM with some style fixes. I'm surprised the spelling team doesn't want some sort of ...
7 years, 4 months ago (2013-08-15 00:01:39 UTC) #24
tony
https://codereview.chromium.org/21130005/diff/57001/LayoutTests/editing/spelling/spelling-huge-text-expected.txt File LayoutTests/editing/spelling/spelling-huge-text-expected.txt (right): https://codereview.chromium.org/21130005/diff/57001/LayoutTests/editing/spelling/spelling-huge-text-expected.txt#newcode9 LayoutTests/editing/spelling/spelling-huge-text-expected.txt:9: PASS internals.markerCountForNode(testEditable.childNodes[0], "spelling") is 6 On 2013/08/15 00:01:40, tony ...
7 years, 4 months ago (2013-08-15 00:02:29 UTC) #25
pstanek
On 2013/08/15 00:02:29, tony wrote: > https://codereview.chromium.org/21130005/diff/57001/LayoutTests/editing/spelling/spelling-huge-text-expected.txt > File LayoutTests/editing/spelling/spelling-huge-text-expected.txt (right): > > https://codereview.chromium.org/21130005/diff/57001/LayoutTests/editing/spelling/spelling-huge-text-expected.txt#newcode9 > ...
7 years, 4 months ago (2013-08-15 11:05:22 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pstanek@opera.com/21130005/66001
7 years, 4 months ago (2013-08-15 15:31:09 UTC) #27
commit-bot: I haz the power
Failed to apply patch for Source/core/editing/Editor.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-15 15:31:21 UTC) #28
please use gerrit instead
Pawel: Please rebase your patch.
7 years, 4 months ago (2013-08-15 15:32:45 UTC) #29
pstanek
On 2013/08/15 15:32:45, Rouslan Solomakhin wrote: > Pawel: Please rebase your patch. Done.
7 years, 4 months ago (2013-08-15 17:19:11 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pstanek@opera.com/21130005/35001
7 years, 4 months ago (2013-08-15 17:22:29 UTC) #31
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=2126
7 years, 4 months ago (2013-08-15 19:33:45 UTC) #32
tony
On 2013/08/15 19:33:45, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 4 months ago (2013-08-15 20:07:36 UTC) #33
pstanek
On 2013/08/15 20:07:36, tony wrote: > On 2013/08/15 19:33:45, I haz the power (commit-bot) wrote: ...
7 years, 4 months ago (2013-08-15 21:47:48 UTC) #34
pstanek
On 2013/08/15 21:47:48, pstanek wrote: > On 2013/08/15 20:07:36, tony wrote: > > On 2013/08/15 ...
7 years, 4 months ago (2013-08-15 22:12:43 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pstanek@opera.com/21130005/99001
7 years, 4 months ago (2013-08-15 22:25:12 UTC) #36
commit-bot: I haz the power
7 years, 4 months ago (2013-08-16 00:18:39 UTC) #37
Message was sent while issue was closed.
Change committed as 156183

Powered by Google App Engine
This is Rietveld 408576698