diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 20:59:55 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 20:59:55 +0000 |
commit | 83dde5448f2650827fc26a02168c18e6c5825ae8 (patch) | |
tree | a74ca15fc54c5c37193300490610fcb89b664d42 /webkit/glue/editor_client_impl.cc | |
parent | 9b408277e43bbfd963404e4babf0447de24e9b96 (diff) | |
download | chromium_src-83dde5448f2650827fc26a02168c18e6c5825ae8.zip chromium_src-83dde5448f2650827fc26a02168c18e6c5825ae8.tar.gz chromium_src-83dde5448f2650827fc26a02168c18e6c5825ae8.tar.bz2 |
Remove WebViewDelegate::SpellCheckerDocumentTag method and eliminate
synchronous IPCs to fetch a document tag on platforms other than Mac.
R=pinkerton
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/201096
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r-- | webkit/glue/editor_client_impl.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc index e1187f7..1502a3c 100644 --- a/webkit/glue/editor_client_impl.cc +++ b/webkit/glue/editor_client_impl.cc @@ -152,14 +152,7 @@ void EditorClientImpl::toggleGrammarChecking() { } int EditorClientImpl::spellCheckerDocumentTag() { -#if defined(OS_MACOSX) - WebViewDelegate* d = web_view_->delegate(); - if (d) - return d->SpellCheckerDocumentTag(); -#else - // Can't use NOTIMPLEMENTED() here as it confounds the layout test output, - // but this should eventually be implemented for ignores to work. -#endif // OS_MACOSX + ASSERT_NOT_REACHED(); return 0; } @@ -849,8 +842,7 @@ void EditorClientImpl::checkSpellingOfString(const UChar* str, int length, if (isContinuousSpellCheckingEnabled() && d) { std::wstring word = webkit_glue::StringToStdWString(WebCore::String(str, length)); - d->SpellCheck(word, spellCheckerDocumentTag(), - &spell_location, &spell_length); + d->SpellCheck(word, &spell_location, &spell_length); } else { spell_location = 0; spell_length = 0; @@ -879,8 +871,7 @@ WebCore::String EditorClientImpl::getAutoCorrectSuggestionForMisspelledWord( return WebCore::String(); } - std::wstring autocorrect_word = - d->GetAutoCorrectWord(word, spellCheckerDocumentTag()); + std::wstring autocorrect_word = d->GetAutoCorrectWord(word); return webkit_glue::StdWStringToString(autocorrect_word); } |