Bug 1317562. Make style images use async image notifications when requesting decoding. r=aosmond
authorTimothy Nikkel <tnikkel@gmail.com>
Sun, 25 Dec 2016 00:18:08 -0600
changeset 330109 e5c12e3f9e1d3f2b2e178f81a8c65ca1f5e79e76
parent 330108 1b83bc5087ec7dbd464ac5a1c0efd2f9b7e1b89d
child 330110 e2f6478f748157bf82a5fd0e940a6043af076a77
push id31230
push usercbook@mozilla.com
push dateThu, 19 Jan 2017 15:10:50 +0000
treeherdermozilla-central@a3978751f451 [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 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
@@ -2252,17 +2252,17 @@ nsStyleImage::ComputeActualCropRect(nsIn
 bool
 nsStyleImage::StartDecoding() const
 {
   if (mType == eStyleImageType_Image) {
     imgRequestProxy* req = GetImageData();
     if (!req) {
       return false;
     }
-    return req->StartDecodingWithResult(imgIContainer::FLAG_NONE);
+    return req->StartDecodingWithResult(imgIContainer::FLAG_ASYNC_NOTIFY);
   }
   // null image types always return false from IsComplete, so we do the same here.
   return mType != eStyleImageType_Null ? true : false;
 }
 
 bool
 nsStyleImage::IsOpaque() const
 {