Bug 695859. Don't progressively display images during decode if we have all of the data. r=bholley

This should reduce the amount of image repainting that happens during download.

--HG--
extra : rebase_source : 2dd2ea707e163fbf2ef344ba17e944b5c8f227fd
This commit is contained in:
Jeff Muizelaar 2011-10-19 18:06:14 -04:00
parent d8d89b43de
commit c5d55e227a

View File

@ -2839,10 +2839,10 @@ imgDecodeWorker::Run()
mDecodeTime += decodeLatency;
// Flush invalidations _after_ we've written everything we're going to.
// Furthermore, if this is a redecode, we don't want to do progressive
// Furthermore, if we have all of the data, we don't want to do progressive
// display at all. In that case, let Decoder::PostFrameStop() do the
// flush once the whole frame is ready.
if (!image->mHasBeenDecoded) {
if (!image->mHasSourceData) {
image->mInDecoder = true;
image->mDecoder->FlushInvalidations();
image->mInDecoder = false;