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 377384 e5c12e3f9e1d3f2b2e178f81a8c65ca1f5e79e76
parent 377383 1b83bc5087ec7dbd464ac5a1c0efd2f9b7e1b89d
child 377385 e2f6478f748157bf82a5fd0e940a6043af076a77
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [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
 {