import from UXP: Issue #2041 follow-up - fix macro condition (8f091628)

This commit is contained in:
2023-06-26 12:12:25 +08:00
parent 0f35b7c783
commit 789eb8d8b9
+3 -5
View File
@@ -201,13 +201,11 @@ DecoderFactory::CreateAnimationDecoder(DecoderType aType,
}
MOZ_ASSERT(aType == DecoderType::GIF || aType == DecoderType::PNG ||
aType == DecoderType::WEBP,
aType == DecoderType::WEBP
#ifdef MOZ_JXL
|| aType == DecoderType::JXL,
#else
,
|| aType == DecoderType::JXL
#endif
"Calling CreateAnimationDecoder for non-animating DecoderType");
, "Calling CreateAnimationDecoder for non-animating DecoderType");
// Create an anonymous decoder. Interaction with the SurfaceCache and the
// owning RasterImage will be mediated by AnimationSurfaceProvider.