Closed Bug 160001 Opened 22 years ago Closed 22 years ago

atsui display code show text incorrectly

Categories

(Core :: Internationalization, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.2alpha

People

(Reporter: ftang, Assigned: ftang)

References

()

Details

(Keywords: intl)

Attachments

(1 file)

When I visit http://people.netscape.com/ftang/testscript/gb18030/gb18030.cgi?page=52
or some page similar to that. the text drawn by ATSUI change when I mouse over. 

The first part of change in 

http://bugzilla.mozilla.org/attachment.cgi?id=93064&action=view
seems solve this issue.e
that patch is submitted in 111728. I do not agree with the 2nd part. but the
first part is very good to take. 
Summary: atsui display code show text incorrectly → atsui display code show text incorrectly
submitted by hsivonen@niksula.hut.fi (Henri Sivonen) in bug 111728
Comment on attachment 93201 [details] [diff] [review]
patch address the atsui issue

r=ftang
Attachment #93201 - Flags: review+
ask sfraser to sr
Status: NEW → ASSIGNED
Blocks: 157673
Keywords: intl, nsbeta1+
Comment on attachment 93201 [details] [diff] [review]
patch address the atsui issue

sr=sfraser
Attachment #93201 - Flags: superreview+
QA Contact: ruixu → ylong
PC/Mac OS X? I doubt it. Setting Platform to Mac.
Hardware: PC → Macintosh
Target Milestone: --- → mozilla1.2alpha
> Re: bug 111728 comment 11 From Henri Sivonen  2002-07-27 15:25 -------
>
> non-MacRoman chars getting cached somewhere in such a way that the
> first-rendered char gets repeated when Mozilla is supposed to draw the next

The patch for bug 107146 fixes this bug by clearing the ATSUI cache. It turned
out during testing that the MathML metrics were incorrect (i.e., constant) and
shofield contacted Apple: ATSUI doesn't clear its cache if the pointer is the
same. So clearing the cache seems more intelligible and will bullet-proof
against other oddities that might be lurking there.
I don't know what the implications of the different approaches are.

I tried to re-apply the style, because Apple suggests it in the docs:
http://developer.apple.com/techpubs/macosx/Carbon/text/ATSUI/Apple_Type_S_code_Imaging/Functions/Assigning_an_pdating_Text.html
According to Apple's documentation, ATSUClearLayoutCache isn't available on Mac
OS 8.5.
how about using ATSUClearLayoutCache  for TARGET carbon and use the current
patch for non Carbon?
Is ATSUClearLayoutCache  available on MacOS X?
Accoding to the docs, ATSUClearLayoutCache is available on OS X.

If ATSUClearLayoutCache is called, should ATSUSetRunStyle be called nonetheless,
since the docs say it should be called after updating the text pointer? 
This seems to WorkForMe using FizzillaCFM/2002080303. The text doesn't change on
mouseover.
It appears that this one got fixed along with the MathML landing. I haven't
tested what happends if you --disable-mathml, but disabling MathML is uncool
anyway. :-)
mark it as fixed . it is really fixed by other bug (the mathml patch)
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Not sure which MathML bug fixed it, so let's depend on the basic one.
Depends on: 155703
This is fixed in 09-16 trunk build, but I wonder why I still see this problem on
09-12 branch build, because the math bug 155703 was checked in quite a long time
ago.
Not sure if it is related with surrogate support checked-in trunk build.

I'm marking this as verified as fixed based on trunk build result.  Please
re-open if we should get this in branch.
Status: RESOLVED → VERIFIED
Depends on: 180372
No longer blocks: 157673
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: