void DumpRenderTreeSupportEfl::suspendAnimations(Evas_Object* ewkFrame) { WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame); if (!frame) return; WebCore::AnimationController *animationController = frame->animation(); if (animationController) animationController->suspendAnimations(); }
unsigned DumpRenderTreeSupportEfl::activeAnimationsCount(const Evas_Object* ewkFrame) { WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame); if (!frame) return 0; WebCore::AnimationController* animationController = frame->animation(); if (!animationController) return 0; return animationController->numberOfActiveAnimations(frame->document()); }
bool DumpRenderTreeSupportEfl::pauseTransition(Evas_Object* ewkFrame, const char* name, const char* elementId, double time) { WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame); if (!frame) return false; WebCore::Element* element = frame->document()->getElementById(elementId); if (!element || !element->renderer()) return false; return frame->animation()->pauseTransitionAtTime(element->renderer(), name, time); }