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); |