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

Issue 2650183002: Remove spelling markers when element is not editable (Closed)

Created:
3 years, 11 months ago by Manuel Rego
Modified:
3 years, 10 months ago
Reviewers:
tkent, yosin_UTC9, Xiaocheng
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, florian_rivoal.net, groby+blinkspell_chromium.org, jfernandez, timvolodine
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove spelling markers when element is not editable If you mark a contenteditable element as not editable, any spelling marker that appears there should disappear. This behavior was discussed and agreed with the CSS WG at: https://github.com/w3c/csswg-drafts/issues/623 BUG=683896 TEST=editing/spelling/spellcheck-remove-markers.html Review-Url: https://codereview.chromium.org/2650183002 Cr-Commit-Position: refs/heads/master@{#447727} Committed: https://chromium.googlesource.com/chromium/src/+/03bd67fe0ded2c7031eb1c3efb39150056737492

Patch Set 1 #

Patch Set 2 : Add Mac and Windows baselines #

Total comments: 10

Patch Set 3 : Fix issue and add new spellcheck_test #

Total comments: 5

Patch Set 4 : New version #

Patch Set 5 : Add missing comment #

Total comments: 6

Patch Set 6 : Apply suggested changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/editing/spelling/spellcheck-remove-markers.html View 1 2 3 4 5 1 chunk +99 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 2 3 4 5 1 chunk +13 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLElement.cpp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
Manuel Rego
3 years, 11 months ago (2017-01-24 13:42:45 UTC) #4
yosin_UTC9
https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html File third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html (right): https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html#newcode1 third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html:1: <!DOCTYPE html> Could you use spellcheckTest[1] to avoid pixel ...
3 years, 11 months ago (2017-01-25 02:31:41 UTC) #5
Xiaocheng
https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html File third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html (right): https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html#newcode1 third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html:1: <!DOCTYPE html> On 2017/01/25 at 02:31:41, Yosi_UTC9 wrote: > ...
3 years, 11 months ago (2017-01-25 02:56:57 UTC) #6
Manuel Rego
Thanks for the reviews! https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html File third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html (right): https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html#newcode1 third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html:1: <!DOCTYPE html> I already tried ...
3 years, 11 months ago (2017-01-25 08:03:10 UTC) #7
Xiaocheng
https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html File third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html (right): https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html#newcode1 third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html:1: <!DOCTYPE html> Blink's spell checker works asynchronously, so spell ...
3 years, 11 months ago (2017-01-25 08:28:36 UTC) #8
Manuel Rego
https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html File third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html (right): https://codereview.chromium.org/2650183002/diff/20001/third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html#newcode1 third_party/WebKit/LayoutTests/editing/spelling/remove_spelling_markers.html:1: <!DOCTYPE html> On 2017/01/25 08:28:36, Xiaocheng wrote: > spellcheck_test( ...
3 years, 11 months ago (2017-01-25 09:10:21 UTC) #9
Manuel Rego
Uploaded new version, PTAL. Thanks!
3 years, 11 months ago (2017-01-25 12:29:32 UTC) #11
yosin_UTC9
lgtm https://codereview.chromium.org/2650183002/diff/40001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2650183002/diff/40001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode808 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:808: void SpellChecker::removeSpellingAndGrammarMarkers(HTMLElement& element) { Note: We want to ...
3 years, 11 months ago (2017-01-26 04:55:48 UTC) #12
Xiaocheng
https://codereview.chromium.org/2650183002/diff/40001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2650183002/diff/40001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode811 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:811: for (Node& node : NodeTraversal::inclusiveDescendantsOf(element)) This function still removes ...
3 years, 11 months ago (2017-01-26 05:12:33 UTC) #13
tkent
Does this CL work well in a case where an element becomes non-editable by -webkit-user-modify ...
3 years, 11 months ago (2017-01-26 05:13:01 UTC) #14
yosin_UTC9
https://codereview.chromium.org/2650183002/diff/40001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2650183002/diff/40001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode811 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:811: for (Node& node : NodeTraversal::inclusiveDescendantsOf(element)) On 2017/01/26 at 05:12:33, ...
3 years, 11 months ago (2017-01-26 05:44:02 UTC) #15
Manuel Rego
I've uploaded a new version with the missing test case. Regarding "-webkit-user-modify" this patch doesn't ...
3 years, 10 months ago (2017-01-27 12:56:20 UTC) #16
tkent
On 2017/01/27 at 12:56:20, rego wrote: > Regarding "-webkit-user-modify" this patch doesn't detect > the ...
3 years, 10 months ago (2017-01-30 01:06:38 UTC) #17
Manuel Rego
On 2017/01/30 01:06:38, tkent wrote: > On 2017/01/27 at 12:56:20, rego wrote: > > Regarding ...
3 years, 10 months ago (2017-01-31 08:02:06 UTC) #18
Xiaocheng
Sorry for the long delay. Just back from a sick leave... I'm basically OK with ...
3 years, 10 months ago (2017-02-01 05:20:28 UTC) #19
Manuel Rego
Uploaded new version applying suggested changes. On 2017/02/01 05:20:28, Xiaocheng wrote: > Sorry for the ...
3 years, 10 months ago (2017-02-01 14:50:25 UTC) #20
Xiaocheng
lgtm
3 years, 10 months ago (2017-02-02 03:13:23 UTC) #21
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/2650183002/100001
3 years, 10 months ago (2017-02-02 07:49:51 UTC) #24
Manuel Rego
Thanks for the thoroughly review. :-)
3 years, 10 months ago (2017-02-02 07:49:54 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 08:41:12 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/03bd67fe0ded2c7031eb1c3efb39...

Powered by Google App Engine
This is Rietveld 408576698