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

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

Issue 10889002: Reset word iterators when changing the spellchecker language. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/spellchecker/spellcheck.cc
===================================================================
--- chrome/renderer/spellchecker/spellcheck.cc (revision 153594)
+++ chrome/renderer/spellchecker/spellcheck.cc (working copy)
@@ -129,6 +129,8 @@
file == base::kInvalidPlatformFileValue && !language.empty();
character_attributes_.SetDefaultLanguage(language);
+ text_iterator_.Reset();
+ contraction_iterator_.Reset();
custom_words_.insert(custom_words_.end(),
custom_words.begin(), custom_words.end());
« no previous file with comments | « no previous file | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698