Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
bool DumpRenderTreeSupportQt::pauseSVGAnimation(QWebFrame *frame, const QString &animationId, double time, const QString &elementId)
{
#if !ENABLE(SVG)
    return false;
#else
    Frame* coreFrame = QWebFramePrivate::core(frame);
    if (!coreFrame)
        return false;

    Document* doc = coreFrame->document();
    Q_ASSERT(doc);

    if (!doc->svgExtensions())
        return false;

    Node* coreNode = doc->getElementById(animationId);
    if (!coreNode || !SVGSMILElement::isSMILElement(coreNode))
        return false;

    return doc->accessSVGExtensions()->sampleAnimationAtTime(elementId, static_cast<SVGSMILElement*>(coreNode), time);
#endif
}
// Pause a given SVG animation on the target node at a specific time.
// This method is only intended to be used for testing the SVG animation system.
Pause a given SVG animation on the target node at a specific time.
This method is only intended to be used for testing the SVG animation system.
Pause a given SVG animation on the target node at a specific time . This method is only intended to be used for testing the SVG animation system .
bool DumpRenderTreeSupportQt::pauseSVGAnimation(QWebFrame *frame, const QString &animationId, double time, const QString &elementId)
{
#if !ENABLE(SVG)
    return false;
#else
    Frame* coreFrame = QWebFramePrivate::core(frame);
    if (!coreFrame)
        return false;
    Document* doc = coreFrame->document();
    Q_ASSERT(doc);
    if (!doc->svgExtensions())
        return false;
    Node* coreNode = doc->getElementById(animationId);
    if (!coreNode || !SVGSMILElement::isSMILElement(coreNode))
        return false;
    return doc->accessSVGExtensions()->sampleAnimationAtTime(elementId, static_cast<SVGSMILElement*>(coreNode), time);
#endif
}
bool DumpRenderTreeSupportQt :: pauseSVGAnimation ( QWebFrame * frame , const QString & animationId , double time , const QString & elementId ) { #if ! ENABLE ( SVG ) return false ; #else Frame * coreFrame = QWebFramePrivate :: core ( frame ) ; if ( ! coreFrame ) return false ; Document * doc = coreFrame -> document ( ) ; Q_ASSERT ( doc ) ; if ( ! doc -> svgExtensions ( ) ) return false ; Node * coreNode = doc -> getElementById ( animationId ) ; if ( ! coreNode || ! SVGSMILElement :: isSMILElement ( coreNode ) ) return false ; return doc -> accessSVGExtensions ( ) -> sampleAnimationAtTime ( elementId , static_cast < SVGSMILElement * > ( coreNode ) , time ) ; #endif }
Pause a given SVG animation on the target node at a specific time.
Pause a given SVG animation on the target node at a specific time .