Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: content/renderer/render_view.cc

Issue 6813090: Chrome side needed for WebKit change to move the little remaining spellcheck code out of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.cc ('k') | webkit/glue/context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.cc
===================================================================
--- content/renderer/render_view.cc (revision 81105)
+++ content/renderer/render_view.cc (working copy)
@@ -2189,6 +2189,7 @@
void RenderView::showContextMenu(
WebFrame* frame, const WebContextMenuData& data) {
ContextMenuParams params = ContextMenuParams(data);
+#if !defined(WEBSPELLCHECKCLIENT_HAS_SUGGESTIONS)
if (!params.misspelled_word.empty() && RenderThread::current()) {
int misspelled_offset, misspelled_length;
bool spelled_right = RenderThread::current()->spellchecker()->
@@ -2200,6 +2201,8 @@
if (spelled_right)
params.misspelled_word.clear();
}
+#endif
+
// Serializing a GURL longer than content::kMaxURLChars will fail, so don't do
// it. We replace it with an empty GURL so the appropriate items are disabled
// in the context menu.
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.cc ('k') | webkit/glue/context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698