summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/WebTextCheckerClient.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-09-13 12:51:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 20:50:05 +0200
commitd441d6f39bb846989d95bcf5caf387b42414718d (patch)
treee367e64a75991c554930278175d403c072de6bb8 /Source/WebKit2/UIProcess/WebTextCheckerClient.cpp
parent0060b2994c07842f4c59de64b5e3e430525c4b90 (diff)
downloadqtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebKit2/UIProcess/WebTextCheckerClient.cpp')
-rw-r--r--Source/WebKit2/UIProcess/WebTextCheckerClient.cpp6
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;