summaryrefslogtreecommitdiffstats
path: root/image/Decoder.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-11-22 12:12:58 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-11-22 12:12:58 +0100
commitb37e8f87c45a9926e1336ad02a86e36b1a875109 (patch)
tree0bac6328d9021bff2305deb824ccd08d4771e3fc /image/Decoder.cpp
parenta3da925495ab64a3baa69aac4ae35d848a865616 (diff)
downloadUXP-b37e8f87c45a9926e1336ad02a86e36b1a875109.tar
UXP-b37e8f87c45a9926e1336ad02a86e36b1a875109.tar.gz
UXP-b37e8f87c45a9926e1336ad02a86e36b1a875109.tar.lz
UXP-b37e8f87c45a9926e1336ad02a86e36b1a875109.tar.xz
UXP-b37e8f87c45a9926e1336ad02a86e36b1a875109.zip
Fix debug assertion.
See: https://github.com/MoonchildProductions/UXP/commit/622098073e132995994fac4d61e3629d08ee1801#commitcomment-31390051
Diffstat (limited to 'image/Decoder.cpp')
-rw-r--r--image/Decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/image/Decoder.cpp b/image/Decoder.cpp
index a6fd67c3f..5ff8c72b5 100644
--- a/image/Decoder.cpp
+++ b/image/Decoder.cpp
@@ -295,7 +295,7 @@ Decoder::AllocateFrame(const gfx::IntSize& aOutputSize,
// We should now be on |aFrameNum|. (Note that we're comparing the frame
// number, which is zero-based, with the frame count, which is one-based.)
- MOZ_ASSERT(aAnimParams, aAnimParams->mFrameNum + 1 == mFrameCount);
+ MOZ_ASSERT_IF(aAnimParams, aAnimParams->mFrameNum + 1 == mFrameCount);
// If we're past the first frame, PostIsAnimated() should've been called.
MOZ_ASSERT_IF(mFrameCount > 1, HasAnimation());