Bug 1130707 (Followup) - Add missing return statement. r=me a=lmandel
☠☠ backed out by 0d2ff4249817 ☠ ☠
authorSeth Fowler <seth@mozilla.com>
Tue, 10 Feb 2015 14:28:14 -0800
changeset 249885 4abf28db48d53964d502c9f6ff93d46c2b784f30
parent 249884 77af082895db0ba23a53bcf4fac30c456ee9ee06
child 249886 4a8edebbc3cebe1a6659bcfcc9b8fb89f4759071
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, lmandel
bugs1130707
milestone37.0a2
Bug 1130707 (Followup) - Add missing return statement. r=me a=lmandel
image/src/RasterImage.cpp
--- a/image/src/RasterImage.cpp
+++ b/image/src/RasterImage.cpp
@@ -1179,16 +1179,17 @@ RasterImage::OnImageDataComplete(nsIRequ
 
 void
 RasterImage::NotifyForDecodeOnDrawOnly()
 {
   if (!NS_IsMainThread()) {
     nsCOMPtr<nsIRunnable> runnable =
       NS_NewRunnableMethod(this, &RasterImage::NotifyForDecodeOnDrawOnly);
     NS_DispatchToMainThread(runnable);
+    return;
   }
 
   NotifyProgress(FLAG_DECODE_STARTED | FLAG_ONLOAD_BLOCKED);
 }
 
 nsresult
 RasterImage::OnImageDataAvailable(nsIRequest*,
                                   nsISupports*,