mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-04 18:29:29 +02:00
Fixed code which prevented the rendering of large animated background gifs. Return after the the call to PatBltTile only if PatBltTile returns PR_TRUE otherwise fall through to the slow tiling code. bug 133096 r=dcone sr=attinasi a=asa
This commit is contained in:
parent
bdeb4a5e64
commit
1945858afe
1 changed files with 7 additions and 2 deletions
|
|
@ -832,7 +832,12 @@ NS_IMETHODIMP nsImageWin::DrawTile(nsIRenderingContext &aContext,
|
||||||
} else {
|
} else {
|
||||||
if( (imageScaledWidth < MAX_BUFFER_WIDTH) || (imageScaledHeight < MAX_BUFFER_HEIGHT) ) {
|
if( (imageScaledWidth < MAX_BUFFER_WIDTH) || (imageScaledHeight < MAX_BUFFER_HEIGHT) ) {
|
||||||
// CASE 3 -- THE PLATFORM IS ON NT AND WE HAVE ONE LARGE AND ONE SMALL WIDTH AND HEIGHT
|
// CASE 3 -- THE PLATFORM IS ON NT AND WE HAVE ONE LARGE AND ONE SMALL WIDTH AND HEIGHT
|
||||||
return ( PatBltTile(aContext,aSurface,aX0,aY0,aX1,aY1) );
|
if (PatBltTile(aContext,aSurface,aX0,aY0,aX1,aY1)) {
|
||||||
|
return(PR_TRUE);
|
||||||
|
}
|
||||||
|
// If PatBltTile returns PR_FALSE then we must drop through to the slow tiling
|
||||||
|
// code because either the width or height of the tiling buffer has been exceeded
|
||||||
|
useSlow = PR_TRUE;
|
||||||
} else {
|
} else {
|
||||||
// CASE 4 -- THE PLATFORM IS ON NT AND BOTH THE WIDTH AND HEIGHT ARE LARGE.
|
// CASE 4 -- THE PLATFORM IS ON NT AND BOTH THE WIDTH AND HEIGHT ARE LARGE.
|
||||||
// -- THIS IS AN ODD CASE.. SEEMS PATBLT WITH LARGER BRUSHES HAS A DIFFICULT TIME
|
// -- THIS IS AN ODD CASE.. SEEMS PATBLT WITH LARGER BRUSHES HAS A DIFFICULT TIME
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue