Bug 8158

Summary: REGRESSION: Clicking past RTL text in a new text field puts the caret on the wrong side of the text
Product: WebKit Reporter: mitz
Component: FormsAssignee: Adele Peterson <adele>
Status: VERIFIED FIXED    
Severity: Normal Keywords: Regression
Priority: P1    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Test case none

mitz
Reported 2006-04-03 10:31:32 PDT
Clicking to the left (resp. right) or RTL text puts the caret to the right (resp. left) of the text. The caret should be positioned at the edge of the text which is closer to the click position. See the attached test case.
Attachments
Test case (548 bytes, text/html)
2006-04-03 10:32 PDT, mitz
no flags
mitz
Comment 1 2006-04-03 10:32:07 PDT
Created attachment 7484 [details] Test case
Adele Peterson
Comment 2 2006-04-04 11:06:07 PDT
this is also reproducible with contenteditable divs.
Adele Peterson
Comment 3 2006-04-04 11:23:30 PDT
I'm pretty sure the problem is in RenderText::positionForCoordinates
Adele Peterson
Comment 4 2006-04-04 16:16:00 PDT
I have a fix for this... just working on a test now.
mitz
Comment 5 2006-04-07 12:16:49 PDT
Verified in r13271 nightly. I think this fix is even more important for Mail!
Note You need to log in before you can comment on or make changes to this bug.