Changeset 101002 in webkit
- Timestamp:
- Nov 22, 2011 7:39:57 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r100991 r101002 1 2011-11-22 Shinya Kawanaka <shinyak@google.com> 2 3 Spellcheck should be able to run asynchronously 4 https://bugs.webkit.org/show_bug.cgi?id=71991 5 6 Reviewed by Hajime Morita. 7 8 Added asynchronouse spell checking tests. 9 Fixed tests that fails tearing down. 10 11 * editing/spelling/script-tests/spellcheck-paste.js: Fixed tearing down. 12 * editing/spelling/spellcheck-async-expected.txt: Added. 13 * editing/spelling/spellcheck-async.html: Added. 14 * editing/spelling/spelling-unified-emulation.html: Fixed tearing down. 15 1 16 2011-11-22 Vsevolod Vlasov <vsevik@chromium.org> 2 17 -
trunk/LayoutTests/editing/spelling/script-tests/spellcheck-paste.js
r100887 r101002 40 40 return window.setTimeout(next, 0); 41 41 testRoot.style.display = "none"; 42 43 layoutTestController.setAsynchronousSpellCheckingEnabled(false); 42 44 layoutTestController.notifyDone(); 43 45 } -
trunk/LayoutTests/editing/spelling/spelling-unified-emulation.html
r100050 r101002 85 85 } 86 86 87 if (window.internals) 88 internals.setUnifiedTextCheckingEnabled(document, false); 89 87 90 var successfullyParsed = true; 88 91 </script> -
trunk/Source/WebCore/ChangeLog
r101000 r101002 1 2011-11-22 Shinya Kawanaka <shinyak@google.com> 2 3 Spellcheck should be able to run asynchronously. 4 https://bugs.webkit.org/show_bug.cgi?id=71991 5 6 Reviewed by Hajime Morita. 7 8 Run asynchronous spell checker if both asynchronous flag and unified text checker flag are ON. 9 10 When multiple asynchronous spellchecking are requested, only the first request will be processed. 11 12 Test: editing/spelling/spellcheck-async.html 13 14 * editing/Editor.cpp: 15 (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): 16 Uses asynchronous spell checker if asynchronous flag is ON. 17 1 18 2011-11-22 Alexander Pavlov <apavlov@chromium.org> 2 19 -
trunk/Source/WebCore/editing/Editor.cpp
r100890 r101002 2043 2043 } 2044 2044 2045 2046 bool asynchronous = m_frame && m_frame->settings() && m_frame->settings()->asynchronousSpellCheckingEnabled() && !shouldShowCorrectionPanel; 2047 if (asynchronous) { 2048 if (shouldMarkGrammar) 2049 m_spellChecker->requestCheckingFor(resolveTextCheckingTypeMask(textCheckingOptions), grammarParagraph.paragraphRange()); 2050 else 2051 m_spellChecker->requestCheckingFor(resolveTextCheckingTypeMask(textCheckingOptions), spellingParagraph.paragraphRange()); 2052 return; 2053 } 2054 2045 2055 Vector<TextCheckingResult> results; 2046 2056 if (shouldMarkGrammar)
Note: See TracChangeset
for help on using the changeset viewer.