[Webkit-unassigned] [Bug 59435] REGRESSION (74971): Can't select a line of RTL text on Facebook

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 27 18:34:05 PDT 2011


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





--- Comment #9 from Xiaomei Ji <xji at chromium.org>  2011-04-27 18:34:05 PST ---
(In reply to comment #7)
> Created an attachment (id=91394)
 --> (https://bugs.webkit.org/attachment.cgi?id=91394&action=review) [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