Bug 1184996 (Part 4) - Forbid instantiation of decoders except via DecoderFactory. r=tn

This commit is contained in:
Seth Fowler
2015-07-22 22:39:56 -07:00
parent 9e22179872
commit f00db2fe74
10 changed files with 49 additions and 17 deletions

View File

@@ -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;