Bug #324521 --> poor inline spell checking performance on large text documents. When adding or ignoring a word, just spell check the existing spell selection instead of the entire document since those are the only words that would possibly be effected. Limit the size of the spell check selection to the first 250 mistyped words.
sr=bienvenu git-svn-id: svn://10.0.0.236/trunk@191344 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -247,6 +247,7 @@ var gComposeRecyclingListener = {
|
||||
}
|
||||
|
||||
//Reset editor
|
||||
InlineSpellChecker.Init(GetCurrentEditor(), false); // unregister inline spell checking listeners and release the spell checker
|
||||
EditorResetFontAndColorAttributes();
|
||||
EditorCleanup();
|
||||
|
||||
@@ -3551,5 +3552,4 @@ function InitEditor()
|
||||
var editor = GetCurrentEditor();
|
||||
gMsgCompose.initEditor(editor, window.content);
|
||||
InlineSpellChecker.Init(editor, sPrefs.getBoolPref("mail.spellcheck.inline"));
|
||||
InlineSpellChecker.checkDocument(window.content.document);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user