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 id17637
push userdholbert@mozilla.com
push dateMon, 20 Dec 2010 00:53:32 +0000
treeherdermozilla-central@150af817b65d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc, roc
bugs272288
milestone2.0b9pre
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 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
 
 //******************************************************************************