summaryrefslogtreecommitdiffstats
path: root/webkit/glue/editor_client_impl.cc
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 23:32:35 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 23:32:35 +0000
commit35a66cf92767d82ba130c85b7e96d8a5b6d6bd2b (patch)
treed3f4d57476ed73727abbbf1653cde615b1716f03 /webkit/glue/editor_client_impl.cc
parent38e42e42981fc44ad788fef847e96bb3e3d536fa (diff)
downloadchromium_src-35a66cf92767d82ba130c85b7e96d8a5b6d6bd2b.zip
chromium_src-35a66cf92767d82ba130c85b7e96d8a5b6d6bd2b.tar.gz
chromium_src-35a66cf92767d82ba130c85b7e96d8a5b6d6bd2b.tar.bz2
Add support for attribute spellcheck="true"/"false" in <input>.
BUG=www.crbug.com/5574 TEST=Download the test file attached with the bug above. Open the html file in Chrome - the input box should show underlines for misspelled words. Now, edit the HTML file such that spellcheck attribute is false. Check again - misspelled words in the text box should not be underlined this time. Review URL: http://codereview.chromium.org/159547 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r--webkit/glue/editor_client_impl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index 6fe6a73..c4de103 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -126,6 +126,8 @@ bool EditorClientImpl::ShouldSpellcheckByDefault() {
const WebCore::Editor* editor = frame->editor();
if (!editor)
return false;
+ if (editor->spellCheckingEnabledInFocusedNode())
+ return true;
const WebCore::Document* document = frame->document();
if (!document)
return false;