Bug 65849

Summary: [Meta] Spell-checking should share the unified text checker path.
Product: WebKit Reporter: Hajime Morrita <morrita>
Component: HTML EditingAssignee: Shinya Kawanaka <shinyak>
Status: NEW    
Severity: Normal CC: ap, darin, dglazkov, g.czajkowski, gustavo, jiapu.mail, rniwa, shinyak, shinyak, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 72929, 45438, 69128, 70299    
Bug Blocks: 71991    
Attachments:
Description Flags
WIP
none
Patch
none
Patch
none
Patch none

Hajime Morrita
Reported 2011-08-08 04:25:46 PDT
Editor class has two different code paths for spell-checking: One is for (A) using checkSpellingOfString() and checkGrammarOfString(), another is for (B) using checkTextOfParagraph(), the unified text checker available for Mac OS SL or later. Having this completely different code paths makes it hard to modify spellchecking code. We could eliminate "A" by providing checkTextOfParagraph() equivalent which only uses checkSpellingOfString() and checkGrammarOfString(). This emulation doesn't need to be perfect because current "A" behavior is subset of "B" anyway. Such change would hugely simplify spellchecking code.
Attachments
WIP (34.39 KB, patch)
2011-08-08 04:33 PDT, Hajime Morrita
no flags
Patch (37.07 KB, patch)
2011-08-22 21:13 PDT, Hajime Morrita
no flags
Patch (43.01 KB, patch)
2011-08-22 22:37 PDT, Hajime Morrita
no flags
Patch (45.14 KB, patch)
2011-08-22 23:50 PDT, Hajime Morrita
no flags
Hajime Morrita
Comment 1 2011-08-08 04:33:29 PDT
Early Warning System Bot
Comment 2 2011-08-08 04:43:20 PDT
Gyuyoung Kim
Comment 3 2011-08-08 04:44:54 PDT
Gustavo Noronha (kov)
Comment 4 2011-08-08 04:56:37 PDT
WebKit Review Bot
Comment 5 2011-08-08 05:03:45 PDT
Comment on attachment 103228 [details] WIP Attachment 103228 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/9328806 New failing tests: editing/pasteboard/merge-end-blockquote.html editing/deleting/delete-block-contents-003.html editing/pasteboard/merge-after-delete-2.html editing/pasteboard/merge-after-delete.html editing/pasteboard/merge-end-table.html editing/spelling/spelling-backspace-between-lines.html editing/selection/5234383-1.html editing/deleting/delete-ws-fixup-002.html editing/pasteboard/merge-end-list.html editing/selection/5234383-2.html editing/inserting/insert-div-016.html editing/selection/move-backwords-by-word-001.html editing/pasteboard/merge-after-delete-1.html editing/spelling/spelling-attribute-change.html editing/inserting/insert-div-018.html editing/spelling/inline_spelling_markers.html editing/selection/13804.html editing/spelling/spelling-linebreak.html editing/spelling/spelling.html editing/deleting/delete-ws-fixup-001.html
WebKit Review Bot
Comment 6 2011-08-08 08:09:10 PDT
Hajime Morrita
Comment 7 2011-08-22 21:13:13 PDT
Gyuyoung Kim
Comment 8 2011-08-22 21:22:53 PDT
Early Warning System Bot
Comment 9 2011-08-22 21:24:58 PDT
WebKit Review Bot
Comment 10 2011-08-22 21:51:38 PDT
Hajime Morrita
Comment 11 2011-08-22 22:37:34 PDT
Gyuyoung Kim
Comment 12 2011-08-22 22:47:42 PDT
Early Warning System Bot
Comment 13 2011-08-22 22:50:03 PDT
Hajime Morrita
Comment 14 2011-08-22 23:50:14 PDT
Hajime Morrita
Comment 15 2011-08-23 02:24:48 PDT
It's almost green and ready to review! This change looks large at a glance. But it's almost about removing the redundant code. What essentially new is TextCheckingHelper::checkTextOfParagraph().
Note You need to log in before you can comment on or make changes to this bug.