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 324315 0ed01739297a91281878a5ce1a4f8c0329b0d0da
parent 324314 072d40d19b1fe3e521eab399429114a9f28fb19e
child 324316 f1b7ef2430dac82e557590e51c38f56241366751
push id30999
push userphilringnalda@gmail.com
push dateSun, 27 Nov 2016 01:56:56 +0000
treeherdermozilla-central@2a0abcff5cfc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaosmond
bugs1317562
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;