Closed
Bug 248029
Opened 21 years ago
Closed 21 years ago
XUL text with right-to-left text in mixed languages renders wrong
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: smontagu, Assigned: smontagu)
Details
Attachments
(3 files, 1 obsolete file)
910 bytes,
text/html
|
Details | |
2.18 KB,
text/html
|
Details | |
2.08 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
I came across this testing bug 91312. With or without the patch, tooltips
containing a right-to-left override character render incorrectly.
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Summary: tooltip with RLO renders wrong → XUL text with RLO renders wrong
Assignee | ||
Comment 2•21 years ago
|
||
Opening the testcase in a tab and comparing the tab title with the header shows
that the bug is in any XUL text.
Assignee | ||
Updated•21 years ago
|
Attachment #151408 -
Attachment is obsolete: true
Assignee | ||
Comment 3•21 years ago
|
||
It gets worse... Most of the tooltips in this testcase are displayed wrong even
with Ilya's patch from bug 91312.
The good news is that I have a handle on the problem: CalculateCharType() in
nsBidiPresUtils::RenderText needs to scan the text backwards when level is odd.
I think that will solve all the issues.
Assignee | ||
Updated•21 years ago
|
Summary: XUL text with RLO renders wrong → XUL text with right-to-left text in mixed languages renders wrong
Assignee | ||
Comment 4•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #152448 -
Flags: superreview?(roc)
Attachment #152448 -
Flags: review?(roc)
Comment on attachment 152448 [details] [diff] [review]
patch
I don't understand this code very well, but the comment and code make sense.
Attachment #152448 -
Flags: superreview?(roc)
Attachment #152448 -
Flags: superreview+
Attachment #152448 -
Flags: review?(roc)
Attachment #152448 -
Flags: review+
Assignee | ||
Comment 6•21 years ago
|
||
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 7•21 years ago
|
||
This commit have added a warning on brad TBox:
+layout/base/src/nsBidiPresUtils.cpp:1053
+ `nscoord xEndRun' might be used uninitialized in this function
Assignee | ||
Comment 8•21 years ago
|
||
That warning sounds bogus to me. xEndRun is initialized and used inside two
different |if (level & 1)|, and level can't change between the two.
Assignee | ||
Comment 9•21 years ago
|
||
Ilya, this is the bug I mentioned to you on Friday. Can you verify that the bug
is fixed on Linux?
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.
Description
•