Bug 853564 - Don't flash on tab switch by calling StartDecoding instead of RequestDecode. r=jrmuizel a=akeybl
authorJoe Drew <joe@drew.ca>
Mon, 29 Apr 2013 20:11:53 -0400
changeset 133539 93ff2a7991fde0e2dc1398278ca8b9f5d39c1c6d
parent 133538 7f520d65ea0ae284aabe19633f43a217a35aa96a
child 133540 9b664bf6ac2a75c32b60df97a5c32b27b216313a
push id3697
push userjdrew@mozilla.com
push dateTue, 30 Apr 2013 00:17:46 +0000
treeherdermozilla-aurora@9b664bf6ac2a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, akeybl
bugs853564
milestone22.0a2
Bug 853564 - Don't flash on tab switch by calling StartDecoding instead of RequestDecode. r=jrmuizel a=akeybl
content/base/src/nsDocument.cpp
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -9097,17 +9097,17 @@ nsDocument::GetPlugins(nsTArray<nsIObjec
   EnumerateSubDocuments(AllSubDocumentPluginEnum, &aPlugins);
 }
 
 PLDHashOperator LockEnumerator(imgIRequest* aKey,
                                uint32_t aData,
                                void*    userArg)
 {
   aKey->LockImage();
-  aKey->RequestDecode();
+  aKey->StartDecoding();
   return PL_DHASH_NEXT;
 }
 
 PLDHashOperator UnlockEnumerator(imgIRequest* aKey,
                                  uint32_t aData,
                                  void*    userArg)
 {
   aKey->UnlockImage();