Closed Bug 112436 Opened 23 years ago Closed 22 years ago

Some functions in nsATSUIToolkit has to take length

Categories

(Core :: Internationalization, defect)

PowerPC
Mac System 9.x
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.2alpha

People

(Reporter: nhottanscp, Assigned: ftang)

References

Details

The current usage of ATSUI is per character base, it draws only one 
character per time. But the interfaces should be more generic, it should 
take a length along with the string pointer in PRUnichar* and they should 
not hard code a length as one.

Index: mozilla/gfx/src/mac/nsATSUIUtils.h
=========================================================
==========
RCS file: /cvsroot/mozilla/gfx/src/mac/nsATSUIUtils.h,v
retrieving revision 1.7
diff -c -0 -r1.7 nsATSUIUtils.h
*** nsATSUIUtils.h	2001/10/26 20:54:02	1.7
--- nsATSUIUtils.h	2001/11/28 17:50:58
***************
*** 77 ****
!   nsresult GetTextDimensions(const PRUnichar *aCharPt, 
nsTextDimensions &oDim, 
--- 77 ----
!   nsresult GetTextDimensions(const PRUnichar *aCharPt, PRUint32 
aLength, nsTextDimensions &oDim, 
***************
*** 80 ****
!   nsresult DrawString(const PRUnichar *aCharPt, PRInt32 x, PRInt32 y, 
short &oWidth, 
--- 80 ----
!   nsresult DrawString(const PRUnichar *aCharPt, PRUint32 aLength, 
PRInt32 x, PRInt32 y, short &oWidth, 
***************
*** 85 ****
!   void StartDraw(const PRUnichar *aCharPt, short aSize, short fontNum, 
PRBool aBold,
--- 85 ----
!   void StartDraw(const PRUnichar *aCharPt, PRUint32 aLength, short 
aSize, short fontNum, PRBool aBold,
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
Target Milestone: mozilla0.9.9 → mozilla1.2
Does the ATSUI patch in bug 121540 address this?
bug 128263 will fix this
Assignee: nhotta → ftang
Status: ASSIGNED → NEW
Depends on: 128263
fixed and check in 
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.