[Webkit-unassigned] [Bug 66681] Need API for getting surrounding text from webkit in chromium

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 28 18:16:49 PDT 2011


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





--- Comment #14 from Peng Huang <penghuang at chromium.org>  2011-08-28 18:16:49 PST ---
(In reply to comment #13)
> > In this case, cursor and anchor is not a range object, and the order of cursor and anchor is not same (depends on the direction of the selection). So I think using TextIterator::rangeLength() directly is simpler and efficient. What do you think?
> 
> That sounds like an anti-pattern to me. Why do we need this API? What is it used for?

Some input method can generate different input depends on text before or after input cursor.

And some input method can also reconvert committed text or selected text to some others.

For example, the mozc input method can also reconvert committed text input Hiragana or Katakana, and etc.

This API is for getting the surrounding text and anchor, cursor position in surrounding text.

-- 
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