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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 31 13:33:55 PDT 2011


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





--- Comment #30 from Ryosuke Niwa <rniwa at webkit.org>  2011-08-31 13:33:55 PST ---
(In reply to comment #29)
> (In reply to comment #19)
> > Mn... now that I think about it, you should be able to use locationAndLengthFromRange and then ask FrameSelection::baseIsFirst() to determine which one is anchor and focus.
> 
> I think locationAndLengthFromRange() does not have a clear definition. What is the origin position of the location? It may be in the rootEditableElement of the range or in whole document. The scope is unclear.

Then we should address that issue rather than duplicating code.

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