Bug 1317562. Make nsTreeBodyFrame use async image notifications during painting. r=aosmond
authorTimothy Nikkel <tnikkel@gmail.com>
Sat, 26 Nov 2016 01:56:27 -0600
changeset 324348 0ed01739297a91281878a5ce1a4f8c0329b0d0da
parent 324347 072d40d19b1fe3e521eab399429114a9f28fb19e
child 324349 f1b7ef2430dac82e557590e51c38f56241366751
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersaosmond
bugs1317562
milestone53.0a1
Bug 1317562. Make nsTreeBodyFrame use async image notifications during painting. r=aosmond
layout/xul/tree/nsTreeBodyFrame.cpp
--- a/layout/xul/tree/nsTreeBodyFrame.cpp
+++ b/layout/xul/tree/nsTreeBodyFrame.cpp
@@ -2200,17 +2200,17 @@ nsTreeBodyFrame::GetImage(int32_t aRowIn
       NS_ENSURE_SUCCESS(rv, rv);
     }
     listener->UnsuppressInvalidation();
 
     if (!imageRequest)
       return NS_ERROR_FAILURE;
 
     // We don't want discarding/decode-on-draw for xul images
-    imageRequest->StartDecoding(imgIContainer::FLAG_NONE);
+    imageRequest->StartDecoding(imgIContainer::FLAG_ASYNC_NOTIFY);
     imageRequest->LockImage();
 
     // In a case it was already cached.
     imageRequest->GetImage(aResult);
     nsTreeImageCacheEntry cacheEntry(imageRequest, imgNotificationObserver);
     mImageCache.Put(imageSrc, cacheEntry);
   }
   return NS_OK;