[Webkit-unassigned] [Bug 113605] Cancel pending spellcheck requests to avoid lagging markers with slow spellcheck

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 1 21:24:11 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=113605





--- Comment #5 from Hajime Morrita <morrita at google.com>  2013-04-01 21:22:22 PST ---
> 
> How are you?" then the request for the first paragraph might be cancelled. I see your point. Do you have a suggestion on how to better avoid lagging markers with slow spellcheck? Here is the Chromium bug-report with more details that you might find useful: https://code.google.com/p/chromium/issues/detail?id=179639

Thanks for the explanation.

We could compare the position of Nodes using Node::compareDocumentPosition and
doing cancellation for requests which overlap, or are located after the newly-requested range.

Also, i noticed that we have kinda similar cancellation logic in SpellChecker::enqueueRequest() 
where we discard newly-requested check when there is pending request for same node.
We could put the cancellation logic in this patch there.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list