diff options
Diffstat (limited to 'Source/WebKit/chromium/src/WebTextCheckingCompletionImpl.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/WebTextCheckingCompletionImpl.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Source/WebKit/chromium/src/WebTextCheckingCompletionImpl.cpp b/Source/WebKit/chromium/src/WebTextCheckingCompletionImpl.cpp index 0f59a93d0..0d6e4db78 100644 --- a/Source/WebKit/chromium/src/WebTextCheckingCompletionImpl.cpp +++ b/Source/WebKit/chromium/src/WebTextCheckingCompletionImpl.cpp @@ -41,25 +41,11 @@ using namespace WebCore; namespace WebKit { -static TextCheckingType toCoreCheckingType(WebTextCheckingResult::Error error) -{ - if (error == WebTextCheckingResult::ErrorSpelling) - return TextCheckingTypeSpelling; - ASSERT(error == WebTextCheckingResult::ErrorGrammar); - return TextCheckingTypeGrammar; -} - static Vector<TextCheckingResult> toCoreResults(const WebVector<WebTextCheckingResult>& results) { Vector<TextCheckingResult> coreResults; - for (size_t i = 0; i < results.size(); ++i) { - TextCheckingResult coreResult; - coreResult.type = toCoreCheckingType(results[i].error); - coreResult.location = results[i].position; - coreResult.length = results[i].length; - coreResults.append(coreResult); - } - + for (size_t i = 0; i < results.size(); ++i) + coreResults.append(results[i]); return coreResults; } |