void AnimationControllerPrivate::suspendAnimations() { suspendAnimationsForDocument(m_frame->document()); // Traverse subframes for (Frame* child = m_frame->tree()->firstChild(); child; child = child->tree()->nextSibling()) child->animation()->suspendAnimations(); }
void AnimationControllerPrivate::suspendAnimations() { if (isSuspended()) return; suspendAnimationsForDocument(m_frame.document()); // Traverse subframes for (Frame* child = m_frame.tree().firstChild(); child; child = child->tree().nextSibling()) child->animation().suspendAnimations(); m_isSuspended = true; }