Loading
Bug 1354641 - adjust the value of spell check heuristics. r=masayuki
This patch is mainly for adjusting the value of INLINESPELL_CHECK_TIMEOUT from 50ms to 1ms. The value means how long the main thread is blocked for spelling check, and 50ms is too long. It causes significant delays when a rich content document is loading, and the user tries to type immediately before spell checking is done. With the INLINESPELL_CHECK_TIMEOUT setting to 1ms, it's possible to be too short to less powerful machines. Therefore we add INLINESPELL_MINIMUM_WORDS_BEFORE_TIMEOUT to ensure at least N words were checked. MozReview-Commit-ID: 1KYeFpggZGn --HG-- extra : rebase_source : d7733dd37a923e6d6afb7f88174f352d28d4a3c4