Closed Bug 77252 Opened 24 years ago Closed 24 years ago

use helper class instead of 64-bit ints in bidi layout code

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: erik, Assigned: ftang)

Details

(Whiteboard: need suprereview 2001-05-14 07:22)

Attachments

(2 files)

We may wish to consider using a helper class instead of NSPR's 64-bit integers for some of the bidi-related code in layout. I'm attaching Simon Montagu's patch for this.
erik resign. reassign all his bug to ftang for now.
Assignee: erik → ftang
r=ftang
Status: NEW → ASSIGNED
Whiteboard: need supreview
blizzard- can you suprereview this one ?
Whiteboard: need supreview → need supreview 2001-05-08 00:52
mark as moz0.9.1
Target Milestone: --- → mozilla0.9.1
Whiteboard: need supreview 2001-05-08 00:52 → need superreview 2001-05-08 00:52
+#define INT32_MIN 0x80000000 Why is 0x80000000 the min as opposed to 0x00000000? Also, could you use something other than INT32_MIN? Use something like FRAME_MIN or FRAME_MAX and put it before the actual class so it's self-describing? Also, what is the cost in performance here? I'm concerned about pushing another object on the stack in what is a pretty CPU intensive function.
I agree that the minimum for the line could be 0 (or maybe -1 for luck), but can't a frame have a negative xcoord? I'll change the #defines as you suggest. I don't know about the performance question. The change uses three nsFrameOrigin objects instead of four PRInt64s. Is that a net loss or gain?
remvoe status whiteboard
Whiteboard: need superreview 2001-05-08 00:52
r=ftang ask for suprreview again
Whiteboard: need suprereview
Whiteboard: need suprereview → need suprereview 2001-05-14 07:22
sr=blizzard
fixed and check in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking verified per last comments.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: