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

Unified Diff: Source/web/EditorClientImpl.cpp

Issue 21024004: Add/remove spell checking markers in text inputs depending on focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up in the test & the new expected file. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/TextFieldInputType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/EditorClientImpl.cpp
diff --git a/Source/web/EditorClientImpl.cpp b/Source/web/EditorClientImpl.cpp
index 3f0ec5ee5f751dd484bbeb586ed9604344b572e7..7b1741f745c17796b0a3682855d928f09c418d0a 100644
--- a/Source/web/EditorClientImpl.cpp
+++ b/Source/web/EditorClientImpl.cpp
@@ -100,7 +100,7 @@ bool EditorClientImpl::isSelectTrailingWhitespaceEnabled()
bool EditorClientImpl::shouldSpellcheckByDefault()
{
// Spellcheck should be enabled for all editable areas (such as textareas,
- // contentEditable regions, and designMode docs), except text inputs.
+ // contentEditable regions, designMode docs and inputs).
const Frame* frame = m_webView->focusedWebCoreFrame();
if (!frame)
return false;
@@ -125,7 +125,7 @@ bool EditorClientImpl::shouldSpellcheckByDefault()
if (!renderer)
return false;
- return !renderer->isTextField();
+ return true;
}
bool EditorClientImpl::isContinuousSpellCheckingEnabled()
« no previous file with comments | « Source/core/html/TextFieldInputType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698