Bug 1184996 (Part 4) - Forbid instantiation of decoders except via DecoderFactory. r=tn
This commit is contained in:
@@ -67,10 +67,10 @@ DecoderFactory::GetDecoderType(const char* aMimeType)
|
||||
return type;
|
||||
}
|
||||
|
||||
static already_AddRefed<Decoder>
|
||||
GetDecoder(DecoderType aType,
|
||||
RasterImage* aImage,
|
||||
bool aIsRedecode)
|
||||
/* static */ already_AddRefed<Decoder>
|
||||
DecoderFactory::GetDecoder(DecoderType aType,
|
||||
RasterImage* aImage,
|
||||
bool aIsRedecode)
|
||||
{
|
||||
nsRefPtr<Decoder> decoder;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user