Summary: | REGRESSION: RTL selection is painted incorrectly | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | mitz, playmobil, xji | ||||||||
Priority: | P1 | Keywords: | InRadar, Regression | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Mac | ||||||||||
OS: | OS X 10.4 | ||||||||||
URL: | data:text/html,%3Cdiv%20contenteditable%3Eabc%20%20א&%231489;&%231490;%20123%20&%231491;&%231492;&%231493;%20def%3C/div%3E | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 23386 | ||||||||||
Attachments: |
|
Description
Alexey Proskuryakov
2007-11-15 07:02:28 PST
The same thing happens with non-editable text. Any idea when the regression happened? This bug appears to reproduce with the earliest known nightly, r11976, with Safari 2.0.4 on Mac OS X 10.4.11 (8S165). Also reported in Chrome: http://code.google.com/p/chromium/issues/detail?id=3830 besides shift+arrow, shift+cntl+arrow does not work correctly either. I am trying to add InChromeBugs in keywords, but I do not have the right permission. (In reply to comment #4) > Also reported in Chrome: > http://code.google.com/p/chromium/issues/detail?id=3830 That bug is not related to this one. It is related to bug 3729 and covers cases not addressed by the patch for that bug. Created attachment 26250 [details]
LayoutTests/editing/selection/extend-selection-bidi.html
Layout Test
Created attachment 26251 [details]
LayoutTests/editing/selection/extend-selection-bidi.html
Fix formatting.
Created attachment 26268 [details]
Patch w/Layout Test
Make RootInlineBox::fillLineSelectionGap() not assume a contiguous visual LTR selection range.
Still think the following 2 Chrome bugs are related: http://code.google.com/p/chromium/issues/detail?id=3830 (wrong highlight on pure RTL text selection) and http://code.google.com/p/chromium/issues/detail?id=4556 (wrong highlight on mixed RTL/LTR text selection) Comment on attachment 26268 [details]
Patch w/Layout Test
Does this regression test really work in an automated way, or is it only possible to judge its success or failure based on pixel results? Just curious.
r=me
Thanks for looking at this Darin! Since this is essentially a drawing bug and the surrounding data structures contain valid data, I'm not sure how to create a test for this which isn't pixel based. Committed revision 39785. Note that this patch didn't include pixel results, so I had to re-generate them (svn-create-patch script would have handled binary files correctly). Also, its a bit strange that results are not in platform directory, unlike other editing/selection results. |