void AnimationControllerPrivate::suspendAnimations(Document* document) { RenderObjectAnimationMap::const_iterator animationsEnd = m_compositeAnimations.end(); for (RenderObjectAnimationMap::const_iterator it = m_compositeAnimations.begin(); it != animationsEnd; ++it) { RenderObject* renderer = it->first; CompositeAnimation* compAnim = it->second; if (renderer->document() == document) compAnim->suspendAnimations(); } updateAnimationTimer(); }
void AnimationControllerPrivate::suspendAnimationsForDocument(Document* document) { setBeginAnimationUpdateTime(cBeginAnimationUpdateTimeNotSet); RenderObjectAnimationMap::const_iterator animationsEnd = m_compositeAnimations.end(); for (RenderObjectAnimationMap::const_iterator it = m_compositeAnimations.begin(); it != animationsEnd; ++it) { RenderObject* renderer = it->key; if (&renderer->document() == document) { CompositeAnimation* compAnim = it->value.get(); compAnim->suspendAnimations(); } } updateAnimationTimer(); }