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

Unified Diff: Source/core/editing/SpellChecker.cpp

Issue 16190007: Avoid underlining misspellings when typing inside a word (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clear the queue, too Created 7 years, 7 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/editing/SpellChecker.h ('k') | Source/core/editing/TypingCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/SpellChecker.cpp
diff --git a/Source/core/editing/SpellChecker.cpp b/Source/core/editing/SpellChecker.cpp
index dd5b107a72a68722b7dcd684b3428d0b8732bb34..d40e63d94ad34a835f1b02cc49661eda88b5fe3d 100644
--- a/Source/core/editing/SpellChecker.cpp
+++ b/Source/core/editing/SpellChecker.cpp
@@ -194,6 +194,14 @@ void SpellChecker::requestCheckingFor(PassRefPtr<SpellCheckRequest> request)
invokeRequest(request);
}
+void SpellChecker::cancelCheck()
+{
+ if (!m_requestQueue.isEmpty())
+ m_requestQueue.clear();
+ if (m_processingRequest)
+ m_processingRequest->didCancel();
+}
+
void SpellChecker::invokeRequest(PassRefPtr<SpellCheckRequest> request)
{
ASSERT(!m_processingRequest);
« no previous file with comments | « Source/core/editing/SpellChecker.h ('k') | Source/core/editing/TypingCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698