Bug 1128188 - Allow creation of animated frames that do not fit inside the bounds of their image. r=jrmuizel, a=sledru
authorSeth Fowler <seth@mozilla.com>
Sat, 07 Feb 2015 03:51:40 -0800
changeset 243719 f430d5f985d3
parent 243718 7733cfbb59a6
child 243720 cb5d2bbf9234
push id4449
push userryanvm@gmail.com
push date2015-02-09 15:46 +0000
treeherdermozilla-beta@130e59d97b15 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, sledru
bugs1128188
milestone36.0
Bug 1128188 - Allow creation of animated frames that do not fit inside the bounds of their image. r=jrmuizel, a=sledru
image/src/imgFrame.cpp
--- a/image/src/imgFrame.cpp
+++ b/image/src/imgFrame.cpp
@@ -117,17 +117,17 @@ static bool AllowedImageAndFrameDimensio
   if (!AllowedImageSize(aImageSize.width, aImageSize.height)) {
     return false;
   }
   if (!AllowedImageSize(aFrameRect.width, aFrameRect.height)) {
     return false;
   }
   nsIntRect imageRect(0, 0, aImageSize.width, aImageSize.height);
   if (!imageRect.Contains(aFrameRect)) {
-    return false;
+    NS_WARNING("Animated image frame does not fit inside bounds of image");
   }
   return true;
 }
 
 
 imgFrame::imgFrame() :
   mDecoded(0, 0, 0, 0),
   mDecodedMutex("imgFrame::mDecoded"),