Bug 1251806 - In RasterImage::GetFrameInternal(), check if the frame covers the actual surface size rather than the requested surface size. r=tn

This commit is contained in:
Seth Fowler 2016-03-07 17:17:16 -08:00
parent 6451b96c1d
commit 5a675c9ccb

View File

@ -599,7 +599,7 @@ RasterImage::GetFrameInternal(const IntSize& aSize,
// surface.
RefPtr<SourceSurface> frameSurf;
if (!frameRef->NeedsPadding() &&
frameRef->GetSize() == aSize) {
frameRef->GetSize() == frameRef->GetImageSize()) {
frameSurf = frameRef->GetSurface();
}