Bug 594952 - Fix compilation of SVGDocumentWrapper.cpp when SMIL is disabled. r=dholbert a2.0=bustage

This commit is contained in:
Mounir Lamouri 2010-09-10 07:04:30 +02:00
Родитель a013a3e442
Коммит a1d45586a0
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -163,9 +163,13 @@ SVGDocumentWrapper::UpdateViewportBounds(const nsIntSize& aViewportSize)
PRBool
SVGDocumentWrapper::IsAnimated()
{
#ifdef MOZ_SMIL
nsIDocument* doc = mViewer->GetDocument();
return doc && doc->HasAnimationController() &&
doc->GetAnimationController()->HasRegisteredAnimations();
#else
return PR_FALSE;
#endif // MOZ_SMIL
}
void