Closed
Bug 286897
Opened 20 years ago
Closed 20 years ago
XBM cursor hotspots
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
People
(Reporter: megabyte, Assigned: megabyte)
Details
Attachments
(1 file, 2 obsolete files)
|
4.40 KB,
patch
|
asa
:
approval1.8b2+
|
Details | Diff | Splinter Review |
Now that bug 38447 is fixed, hotspot data from XBM cursors should be read. I will upload the patch as soon as bug 38447 comment 163 is resolved.
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #178000 -
Flags: superreview?(tor)
Attachment #178000 -
Flags: review?(cbiesinger)
Comment 2•20 years ago
|
||
Comment on attachment 178000 [details] [diff] [review] patch hm... so if necko gives us the data in just the right blocks, we won't find the hotspot... I guess the code doesn't deal with that anyway (size might be truncated in the middle). I wonder if it might've been better if this decoder were non-incremental? xbm images are usually not large, I guess. anyway, not a topic for this bug. - PRBool hiByte = PR_TRUE; + PRPackedBool hiByte = PR_TRUE; why bother? this is a stack variable. no need to save space. - else - return NS_ERROR_FAILURE; hmm, this is bug 251446 r=biesi if you leave the highByte as PRBool.
Attachment #178000 -
Flags: review?(cbiesinger) → review+
| Assignee | ||
Comment 3•20 years ago
|
||
This patch addresses the review comments. In particular, the problem regarding grabbing the size/hotspot data incrementally is fixed.
Attachment #178000 -
Attachment is obsolete: true
Attachment #178011 -
Flags: superreview?(tor)
Attachment #178011 -
Flags: review+
Comment on attachment 178011 [details] [diff] [review] patch >Index: mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp >- else >- return NS_ERROR_FAILURE; >- >+ As biesi mentioned this is bug 251446 and should be left there. >Index: mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.h >+ PRPackedBool mIsCursor; >+ PRPackedBool mIsX10; // X10 flavor XBM? > PRUint8* mRow; // Hold the decoded row > PRUint8* mAlphaRow; // alpha data for the row The PRPackedBools should be moved to the end of the structure. With those two changes, sr=tor.
Attachment #178011 -
Flags: superreview?(tor) → superreview+
Attachment #178000 -
Flags: superreview?(tor)
| Assignee | ||
Comment 5•20 years ago
|
||
tor's comments addressed. biesi, can you check this in? Thanks.
Attachment #178011 -
Attachment is obsolete: true
Comment 6•20 years ago
|
||
tree's frozen currently... you have to ask for approval or wait until 1.9alpha
| Assignee | ||
Updated•20 years ago
|
Attachment #180021 -
Flags: approval1.8b2?
Comment 7•20 years ago
|
||
Aaron, can you tell us what value this adds to 1.8b2, what kind of risk it poses, and what kind of testing's been done on the patch?
| Assignee | ||
Comment 8•20 years ago
|
||
Adds: XBM cursors can now be specified in CSS and their hotspots will work properly instead of being set to the origin (see bug 38447 for discussion on CSS cursors) Risk: minimal (if this is broken then the original CUR cursor code is likely broken since it was basically copied) Testing: I've built and tested the patch with various valid and invalid files to check for crashes or bad memory allocation and didn't find any problems.
Comment 9•20 years ago
|
||
Comment on attachment 180021 [details] [diff] [review] patch a=asa
Attachment #180021 -
Flags: approval1.8b2? → approval1.8b2+
Comment 10•20 years ago
|
||
Checking in modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp; /cvsroot/mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.cpp,v <-- nsXBMDecoder.cpp new revision: 1.15; previous revision: 1.14 done Checking in modules/libpr0n/decoders/xbm/nsXBMDecoder.h; /cvsroot/mozilla/modules/libpr0n/decoders/xbm/nsXBMDecoder.h,v <-- nsXBMDecoder.h new revision: 1.6; previous revision: 1.5 done
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•