mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
6451b96c1d
commit
5a675c9ccb
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user