Closed
Bug 377923
Opened 17 years ago
Closed 17 years ago
Visible newline glyph in preformatted text with new textframe
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smontagu, Assigned: roc)
References
Details
(Keywords: testcase)
Attachments
(2 files)
190 bytes,
text/html
|
Details | |
11.12 KB,
patch
|
pavlov
:
review+
|
Details | Diff | Splinter Review |
With the new textframe turned on I see a funny little glyph (a white circle on a black background) at the end of every line in preformatted text.
Reporter | ||
Comment 1•17 years ago
|
||
Comments in gfxFont.h say "\r and \n characters must be ignored completely", but I can't find any code that does so.
Assignee | ||
Comment 2•17 years ago
|
||
Ok, we can fix this by modifying glyph extraction to make all \r and \n characters just call SetCharacterGlyph(offset, g.SetMissing()).
Comment 3•17 years ago
|
||
Will need doing for Linux/Pango too, and I assume others.
OS: Windows XP → All
Reporter | ||
Comment 4•17 years ago
|
||
Doing what comment 2 says leaves us with a bug in caret browsing, where the caret appears to stick at the end of each line as it moves across the invisible newline.
Assignee | ||
Comment 5•17 years ago
|
||
I think that's a textframe issue, then.
Assignee | ||
Comment 6•17 years ago
|
||
This patch makes \r, \n and \t guaranteed to be invisible and zero-width on all platforms. This is what nsTextFrameThebes wants. It could be handled by layout but that would require us to keep an extra copy of preformatted text in most situations, which is probably good to avoid (large plain-text files are an important test case).
Assignee | ||
Comment 7•17 years ago
|
||
Comment on attachment 265209 [details] [diff] [review] fix switching review to stuart
Attachment #265209 -
Flags: review?(vladimir) → review?(pavlov)
Updated•17 years ago
|
Attachment #265209 -
Flags: review?(pavlov) → review+
Assignee | ||
Comment 8•17 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•