Closed
Bug 330461
Opened 18 years ago
Closed 18 years ago
Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: uriber, Assigned: uriber)
References
Details
Attachments
(2 files, 2 obsolete files)
680 bytes,
text/html
|
Details | |
2.25 KB,
patch
|
smontagu
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
In an LTR textarea, if a line ends with RTL text, and the next line begins with RTL text, then pressing "End" on the first line does not cause the caret to be displayed at the visual end (left) of the line. Instead the caret is placed before the RTL text. The same is true when switching "LTR" and "RTL" in the description above. This is not a regression. Testcase coming up.
Assignee | ||
Comment 1•18 years ago
|
||
Instructions included.
Assignee | ||
Comment 2•18 years ago
|
||
This will likely be fixed by fixing bug 263359, because that would make the BRFrame at the logical end of the line also be at its visual end.
Depends on: 263359
Comment 3•18 years ago
|
||
Bug 263359 will fix the text area case, but what about caret browsing in HTML with equivalent content?
Assignee | ||
Comment 4•18 years ago
|
||
(In reply to comment #3) > Bug 263359 will fix the text area case, but what about caret browsing in HTML > with equivalent content? > Yes, good point.
Assignee | ||
Comment 5•18 years ago
|
||
For non-text frames (e.g., the BRFrame in this case), for which frameStart == frameEnd == 0, use the hint to determine whether to look at the previous or next frame (instead of arbitrarily looking at the previous frame).
Assignee | ||
Comment 6•18 years ago
|
||
The correct file, this time.
Attachment #218352 -
Attachment is obsolete: true
Attachment #218353 -
Flags: review?(smontagu)
Attachment #218352 -
Flags: review?(smontagu)
Updated•18 years ago
|
Attachment #218353 -
Flags: review?(smontagu) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #218353 -
Flags: superreview?(roc)
Assignee | ||
Comment 7•18 years ago
|
||
Comment on attachment 218353 [details] [diff] [review] patch Actually, upon further consideration, I don't think this patch is correct. It just happened to fix the problem by chance. Simon, apologies for wasting your time on it.
Attachment #218353 -
Attachment is obsolete: true
Attachment #218353 -
Flags: superreview?(roc)
Assignee | ||
Updated•18 years ago
|
Assignee: uriber → nobody
Status: ASSIGNED → NEW
QA Contact: zach → layout.bidi
Assignee | ||
Comment 8•18 years ago
|
||
What I said in comment 2 about bug 263359 is probably true for bug 339786, assuming the BR frame will be treated as whitespace (which it probably should be). Alternatively, I can hack this in nsFrameSelection::GetPrevNextBidiLevels, by setting frameAfter to null if it would have otherwise been a BR frame. That patch superficially conflicts with my patch for bug 333883, so I'll wait for that one to go in before posting it.
Assignee | ||
Comment 9•18 years ago
|
||
As described in the previous comment: just pretend the brframes don't exist (i.e., we're really at the edge of the line when we're before a breframe).
Updated•18 years ago
|
Attachment #232681 -
Flags: review?(smontagu) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #232681 -
Flags: superreview?(roc)
Attachment #232681 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 10•18 years ago
|
||
Checked in: Checking in layout/generic/nsSelection.cpp; /cvsroot/mozilla/layout/generic/nsSelection.cpp,v <-- nsSelection.cpp new revision: 3.259; previous revision: 3.258 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: layout.bidi → layout.fonts-and-text
You need to log in
before you can comment on or make changes to this bug.
Description
•