Closed Bug 587800 Opened 15 years ago Closed 15 years ago

Move GetCurrentFrameIndex & GetNumFrames from Image to RasterImage

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- beta5+

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

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.
Attached patch fixSplinter Review
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)
Blocks: 276431
This is a helper for blocker bug 276431 -- hence, requesting blocking.
blocking2.0: --- → ?
blocking2.0: ? → beta5+
Comment on attachment 466432 [details] [diff] [review] fix r=bholley
Attachment #466432 - Flags: review?(bobbyholley+bmo) → review+
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.

Attachment

General

Created:
Updated:
Size: