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

Unified Diff: chrome/renderer/spellchecker/spellcheck_provider.cc

Issue 14100009: Remove spelling markers when disabling spellcheck (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck_provider.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_provider.cc b/chrome/renderer/spellchecker/spellcheck_provider.cc
index ff6e9a9eabd3f854da243b3ab8d47f59329b4d66..58217e5ba8696f37577c4b96c4b5b9161e668114 100644
--- a/chrome/renderer/spellchecker/spellcheck_provider.cc
+++ b/chrome/renderer/spellchecker/spellcheck_provider.cc
@@ -300,6 +300,8 @@ void SpellCheckProvider::EnableSpellcheck(bool enable) {
WebFrame* frame = render_view()->GetWebView()->focusedFrame();
frame->enableContinuousSpellChecking(enable);
+ if (!enable)
+ frame->removeSpellingMarkers();
}
bool SpellCheckProvider::SatisfyRequestFromCache(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698