Bug 1317562. Make style images use async image notifications when requesting decoding. r=aosmond
☠☠ backed out by c17948ef9b35 ☠ ☠
authorTimothy Nikkel <tnikkel@gmail.com>
Sun, 27 Nov 2016 01:33:02 -0600
changeset 324399 39e0069c673e177f9998f4b0646712242b5699cc
parent 324360 2a0abcff5cfce087c12f3e4820b5e8b773cffaca
child 324400 c17948ef9b358c38d267032dc7667142e8c08909
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersaosmond
bugs1317562
milestone53.0a1
Bug 1317562. Make style images use async image notifications when requesting decoding. r=aosmond
layout/style/nsStyleStruct.cpp
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -2280,17 +2280,17 @@ nsStyleImage::ComputeActualCropRect(nsIn
 nsresult
 nsStyleImage::StartDecoding() const
 {
   if (mType == eStyleImageType_Image) {
     imgRequestProxy* req = GetImageData();
     if (!req) {
       return NS_ERROR_FAILURE;
     }
-    return req->StartDecoding(imgIContainer::FLAG_NONE);
+    return req->StartDecoding(imgIContainer::FLAG_ASYNC_NOTIFY);
   }
   return NS_OK;
 }
 
 bool
 nsStyleImage::IsOpaque() const
 {
   if (!IsComplete()) {