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)
Core
Layout
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: erik, Assigned: ftang)
Details
(Whiteboard: need suprereview 2001-05-14 07:22)
Attachments
(2 files)
|
4.69 KB,
patch
|
Details | Diff | Splinter Review | |
|
4.68 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
erik resign. reassign all his bug to ftang for now.
Assignee: erik → ftang
| Assignee | ||
Comment 4•24 years ago
|
||
blizzard- can you suprereview this one ?
Whiteboard: need supreview → need supreview 2001-05-08 00:52
| Assignee | ||
Updated•24 years ago
|
Whiteboard: need supreview 2001-05-08 00:52 → need superreview 2001-05-08 00:52
Comment 6•24 years ago
|
||
+#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.
Comment 7•24 years ago
|
||
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?
| Assignee | ||
Comment 8•24 years ago
|
||
remvoe status whiteboard
Whiteboard: need superreview 2001-05-08 00:52
Comment 9•24 years ago
|
||
| Assignee | ||
Updated•24 years ago
|
Whiteboard: need suprereview → need suprereview 2001-05-14 07:22
Comment 11•24 years ago
|
||
sr=blizzard
| Assignee | ||
Comment 12•24 years ago
|
||
fixed and check in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•