[Webkit-unassigned] [Bug 57340] REGRESSION (Safari 5.0.4-TOT): Selection doesn't work correctly in BiDi Text

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 6 12:08:49 PDT 2011


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





--- Comment #6 from Xiaomei Ji <xji at chromium.org>  2011-07-06 12:08:49 PST ---
I am copying comments from issue 59435
https://bugs.webkit.org/show_bug.cgi?id=59435#c9

(In reply to comment #7)
> Created an attachment (id=91394)
 --> (https://bugs.webkit.org/attachment.cgi?id=91394&action=review) [details] [details]
> test case
> 
> I attached this simple html with a <p> and <div> (no <br>), 
> but the selection is not correct in the ways that:
> 1. select from left to right, you can not select the rightmost character.
> 2. select from rightmost to left, you can not select the rightmost character.

For example, given the logical text "abcABC" in LTR context, whose display is "abcCBA", when caret is placed rightmost at "abcCBA|", the returned offset from 
http://trac.webkit.org/changeset/74971/trunk/WebCore/rendering/InlineTextBox.cpp is swapped from 0 to 3 due to the box and its containing block are in different directionality. Select left and stops at "abcCB|A", the offset returned is 1, which is correct. The correct selection range should be from offset 0 to 1 and selects 'A', instead, the selection range is from offset 3 to 1 and "CB" is selected.

Similar when select left to right.

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