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

Issue 159516: [chromium-reviews] Fix for spell check underlines disappearing when user clicks out of the Text ... (Closed)

Created:
11 years, 4 months ago by sidchat (Google)
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Fix for spell check underlines disappearing when user clicks out of the Text Box. WebKit removes all spell check markers in Frame::respondToChangedSelection() if, for a text box, the ShouldSpellcheckByDefault() method we have defined in the glue returns false. The problem is, ShouldSpellcheckByDefault() is also called just after the user clicks outside the textbox. As a result, it either detects that the text box is not a focussed node, or determines that the editor is not editable, and returns false, which makes the Frame remove all the markers from the corresponding document object. BUG=www.crbug.com/6058 TEST=Write random stuff in a text box - after the underlines appear, click outside the text box - the underlines should not disappear. Other functionalities of spellcheck, such as changing spell check language, toggling spell check language on/off, should not be affected at all. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21892

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M webkit/glue/editor_client_impl.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sidchat (Google)
11 years, 4 months ago (2009-07-28 17:41:27 UTC) #1
brettw
http://codereview.chromium.org/159516/diff/1/2 File webkit/glue/editor_client_impl.cc (right): http://codereview.chromium.org/159516/diff/1/2#newcode134 Line 134: return true; // Not an issue since the ...
11 years, 4 months ago (2009-07-28 20:38:47 UTC) #2
sidchat (Google)
Made changes as per your suggestions - please have a look again. -Sid http://codereview.chromium.org/159516/diff/1/2 File ...
11 years, 4 months ago (2009-07-28 21:08:05 UTC) #3
brettw
11 years, 4 months ago (2009-07-28 21:13:57 UTC) #4
Great, LGTM

Powered by Google App Engine
This is Rietveld 408576698