diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/WebTextCheckerClient.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/WebTextCheckerClient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/WebTextCheckerClient.cpp b/Source/WebKit2/UIProcess/WebTextCheckerClient.cpp index 86e52c637..cc69d5e69 100644 --- a/Source/WebKit2/UIProcess/WebTextCheckerClient.cpp +++ b/Source/WebKit2/UIProcess/WebTextCheckerClient.cpp @@ -93,6 +93,9 @@ void WebTextCheckerClient::closeSpellDocumentWithTag(uint64_t tag) void WebTextCheckerClient::checkSpellingOfString(uint64_t tag, const String& text, int32_t& misspellingLocation, int32_t& misspellingLength) { + misspellingLocation = -1; + misspellingLength = 0; + if (!m_client.checkSpellingOfString) return; @@ -101,6 +104,9 @@ void WebTextCheckerClient::checkSpellingOfString(uint64_t tag, const String& tex void WebTextCheckerClient::checkGrammarOfString(uint64_t tag, const String& text, Vector<WebCore::GrammarDetail>& grammarDetails, int32_t& badGrammarLocation, int32_t& badGrammarLength) { + badGrammarLocation = -1; + badGrammarLength = 0; + if (!m_client.checkGrammarOfString) return; |