Setting .src should reset image animations; don't animate images no one is

looking at.  Bug 210001, r=pavlov, sr=jst


git-svn-id: svn://10.0.0.236/trunk@151035 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-01-08 18:29:28 +00:00
parent 47cac335f4
commit d3e33b0653
10 changed files with 50 additions and 6 deletions

View File

@@ -141,6 +141,8 @@ NS_IMETHODIMP nsImageLoader::OnStartContainer(imgIRequest *aRequest,
* one loop = 2
*/
aImage->SetAnimationMode(mPresContext->ImageAnimationMode());
// Ensure the animation (if any) is started.
aImage->StartAnimation();
}
return NS_OK;
}