Closed
Bug 587800
Opened 15 years ago
Closed 15 years ago
Move GetCurrentFrameIndex & GetNumFrames from Image to RasterImage
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | beta5+ |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(1 file)
|
3.90 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
FACTS:
- GetCurrentFrameIndex & GetNumFrames don't make any sense for Vector images
- These methods are only called by
(a) image decoders (which already deal with a RasterImage)
(b) one place in imgStatusTracker
HENCE:
I propose that we move these methods to RasterImage, and guard them with
mImage->GetType() & static_cast<RasterImage*>
at the place they're called in imgStatusTracker.
| Assignee | ||
Comment 1•15 years ago
|
||
Here's a fix. It layers on top of bholley's deCOM work in bug 587371. (and I wrote it on top of my patch in bug 587779, but it doesn't depend on that functionality-wise)
For the chunk in imgStatusTracker, we just do the obvious thing for Vector-type images -- send notifications regardless of the fact that we don't have a "number of frames", and use "0" as the frame ID for notifications that require it.
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #466432 -
Flags: review?(bobbyholley+bmo)
| Assignee | ||
Comment 2•15 years ago
|
||
This is a helper for blocker bug 276431 -- hence, requesting blocking.
blocking2.0: --- → ?
Updated•15 years ago
|
blocking2.0: ? → beta5+
Comment 3•15 years ago
|
||
Comment on attachment 466432 [details] [diff] [review]
fix
r=bholley
Attachment #466432 -
Flags: review?(bobbyholley+bmo) → review+
| Assignee | ||
Comment 4•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•