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 249636 ae6da25317bf78947112c9cdf7f48ebdac68d7a9
parent 249635 4809687351b318444a8dac821a6b0887309bd615
child 249637 6c0b609839b118891c9256591914a4ef9f27302b
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, sledru
bugs1128188
milestone37.0a2
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
@@ -118,17 +118,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()
   : mMonitor("imgFrame")
   , mDecoded(0, 0, 0, 0)