Bug 610216 - Fix build bustage when SMIL is disabled. r=dholbert a=bustage

This commit is contained in:
Mounir Lamouri 2010-11-08 10:59:59 +01:00
parent 669ff953e8
commit b6a36b5882

View File

@ -177,7 +177,9 @@ SVGDocumentWrapper::StartAnimation()
{
nsIDocument* doc = mViewer->GetDocument();
if (doc) {
#ifdef MOZ_SMIL
doc->GetAnimationController()->Resume(nsSMILTimeContainer::PAUSE_IMAGE);
#endif // MOZ_SMIL
doc->SetImagesNeedAnimating(PR_TRUE);
}
}
@ -194,7 +196,9 @@ SVGDocumentWrapper::StopAnimation()
nsIDocument* doc = mViewer->GetDocument();
if (doc) {
#ifdef MOZ_SMIL
doc->GetAnimationController()->Pause(nsSMILTimeContainer::PAUSE_IMAGE);
#endif // MOZ_SMIL
doc->SetImagesNeedAnimating(PR_FALSE);
}
}