void SVGImage::stopAnimation() { SVGSVGElement* rootElement = this->rootElement(); if (!rootElement) return; rootElement->pauseAnimations(); }
void SVGImage::stopAnimation() { SVGSVGElement* rootElement = svgRootElement(m_page.get()); if (!rootElement) return; rootElement->pauseAnimations(); }
void SVGImage::resetAnimation() { SVGSVGElement* rootElement = svgRootElement(m_page.get()); if (!rootElement) return; rootElement->pauseAnimations(); rootElement->setCurrentTime(0); }
void SVGImage::stopAnimation() { if (!m_page) return; SVGSVGElement* rootElement = toSVGDocument(m_page->mainFrame().document())->rootElement(); if (!rootElement) return; rootElement->pauseAnimations(); }
JSValue JSC_HOST_CALL jsSVGSVGElementPrototypeFunctionPauseAnimations(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.isObject(&JSSVGSVGElement::s_info)) return throwError(exec, TypeError); JSSVGSVGElement* castedThisObj = static_cast<JSSVGSVGElement*>(asObject(thisValue)); SVGSVGElement* imp = static_cast<SVGSVGElement*>(castedThisObj->impl()); imp->pauseAnimations(); return jsUndefined(); }