Re: [webkit-dev] How to convert character offset into VisiblePosition?

2010-06-02 Thread Dan Bernstein
On Jun 1, 2010, at 10:48 PM, Xiaomei Ji wrote: Given a DOM Node and an InlineBox, is there a way to convert the character offset within this InlineBox to a VisiblePosition? considering bidi/RTL. Not sure how being given a DOM node helps here… Using span node in the following example as

Re: [webkit-dev] How to convert character offset into VisiblePosition?

2010-06-02 Thread Xiaomei Ji
Hi Dan, Thanks for your quick feedback. Please see my comments inline. On Wed, Jun 2, 2010 at 9:30 AM, Dan Bernstein m...@apple.com wrote: On Jun 1, 2010, at 10:48 PM, Xiaomei Ji wrote: Given a DOM Node and an InlineBox, is there a way to convert the character offset within this

[webkit-dev] How to convert character offset into VisiblePosition?

2010-06-01 Thread Xiaomei Ji
Given a DOM Node and an InlineBox, is there a way to convert the character offset within this InlineBox to a VisiblePosition? considering bidi/RTL. Using span node in the following example as an example: div contenteditable dir=rtlabc ששש def span dir=ltrשנב abc סטז/span uvw זזז xyz/div Assume