Closed Bug 330269 Opened 18 years ago Closed 18 years ago

RTL text typed at end of line is reversed

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: uriber, Assigned: mkaply)

References

Details

(Keywords: regression, rtl)

Attachments

(1 file, 1 obsolete file)

This is a regression from bug 319930, which is much easier to fix that to describe. I'll do my best anyway:
In an LTR textarea, type LTR text into the first line, leaving space for a few characters at the end of the line.
Now type space, and *exactly* the number of RTL characters necessary to fill up the line.
Now type anothe space, and more RTL characters. These characters will appear on the next line, but in the wrong direction (i.e., LTR).

This is because in my patch for bug 319930 I neglected to reset the embeddingLevel, baseLevel, and charType attributes on the continuation frames that I'm freeing up for use by the inline reflow code.

Patch will follow soon.
Attached patch patch (obsolete) — Splinter Review
Set the attributes of the freed-up in-flows to be equal to those of the frame they're continuing.
Attachment #214842 - Flags: superreview?(bzbarsky)
Attachment #214842 - Flags: review?(smontagu)
Comment on attachment 214842 [details] [diff] [review]
patch

sr=bzbarsky if those properties are guaranteed to be set on aFrame (something we should assert, perhaps?)
Attachment #214842 - Flags: superreview?(bzbarsky) → superreview+
Yes, I believe the properties should always be set on aFrame, so added ASSERTs to assert this.
Attachment #214842 - Attachment is obsolete: true
Attachment #214845 - Flags: review?(smontagu)
Attachment #214842 - Flags: review?(smontagu)
Attachment #214845 - Flags: review?(smontagu) → review+
Checked in:
Checking in layout/base/nsBidiPresUtils.cpp;
/cvsroot/mozilla/layout/base/nsBidiPresUtils.cpp,v  <--  nsBidiPresUtils.cpp
new revision: 1.69; previous revision: 1.68
done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: