Bug 272288 Patch 3: Evaluate whether we should start animating, when SVG-as-image document finishes loading. r=roc a=roc
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sun, 19 Dec 2010 16:45:29 -0800
changeset 59475 3a8cdfab4ee8d1922f63adbc55c503e890e8a4b4
parent 59474 16f87faaacb4107d7ac8b1089b3a6a476dc06197
child 59476 6f97f3fac6c4a2b0099554443ae84216f5cd4c88
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersroc, roc
bugs272288
milestone2.0b9pre
Bug 272288 Patch 3: Evaluate whether we should start animating, when SVG-as-image document finishes loading. r=roc a=roc
modules/libpr0n/src/VectorImage.cpp
--- a/modules/libpr0n/src/VectorImage.cpp
+++ b/modules/libpr0n/src/VectorImage.cpp
@@ -682,16 +682,17 @@ VectorImage::OnStopRequest(nsIRequest* a
   if (observer) {
     // NOTE: This signals that width/height are available.
     observer->OnStartContainer(nsnull, this);
 
     observer->FrameChanged(this, &nsIntRect::GetMaxSizedIntRect());
     observer->OnStopFrame(nsnull, 0);
     observer->OnStopDecode(nsnull, NS_OK, nsnull);
   }
+  EvaluateAnimation();
 
   return rv;
 }
 
 //------------------------------------------------------------------------------
 // nsIStreamListener method
 
 //******************************************************************************