Open Bug 587907 Opened 14 years ago Updated 2 years ago

Remove ability to instantiate a RasterImage by contract ID

Categories

(Core :: Graphics: ImageLib, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

Details

mozilla-central only instantiates a RasterImage by contract ID in one place -- in imgRequest.cpp, which could just as easily do "new RasterImage()".

Is there any reason we need to even allow creation of RasterImage by contract ID? If not, it seems like extra code that we can & should remove.
(In reply to comment #0)
> mozilla-central only instantiates a RasterImage by contract ID in one place --
> in imgRequest.cpp, which could just as easily do "new RasterImage()".
> 
> Is there any reason we need to even allow creation of RasterImage by contract
> ID?

Nope - we should get rid of it. It should probably wait until I land my big patch stack at bug 513681, since that changes a lot of the nsImageModule stuff.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.