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

    AnimationController* controller = coreFrame->animation();
    if (!controller)
        return false;

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

    Node* coreNode = doc->getElementById(elementId);
    if (!coreNode || !coreNode->renderer())
        return false;

    return controller->pauseAnimationAtTime(coreNode->renderer(), animationName, time);
}
// Pause a given CSS animation or transition on the target node at a specific time.
// If the animation or transition is already paused, it will update its pause time.
// This method is only intended to be used for testing the CSS animation and transition system.
Pause a given CSS animation or transition on the target node at a specific time.
If the animation or transition is already paused, it will update its pause time.
This method is only intended to be used for testing the CSS animation and transition system.
Pause a given CSS animation or transition on the target node at a specific time . If the animation or transition is already paused it will update its pause time . This method is only intended to be used for testing the CSS animation and transition system .
bool DumpRenderTreeSupportQt::pauseAnimation(QWebFrame *frame, const QString &animationName, double time, const QString &elementId)
{
    Frame* coreFrame = QWebFramePrivate::core(frame);
    if (!coreFrame)
        return false;
    AnimationController* controller = coreFrame->animation();
    if (!controller)
        return false;
    Document* doc = coreFrame->document();
    Q_ASSERT(doc);
    Node* coreNode = doc->getElementById(elementId);
    if (!coreNode || !coreNode->renderer())
        return false;
    return controller->pauseAnimationAtTime(coreNode->renderer(), animationName, time);
}
bool DumpRenderTreeSupportQt :: pauseAnimation ( QWebFrame * frame , const QString & animationName , double time , const QString & elementId ) { Frame * coreFrame = QWebFramePrivate :: core ( frame ) ; if ( ! coreFrame ) return false ; AnimationController * controller = coreFrame -> animation ( ) ; if ( ! controller ) return false ; Document * doc = coreFrame -> document ( ) ; Q_ASSERT ( doc ) ; Node * coreNode = doc -> getElementById ( elementId ) ; if ( ! coreNode || ! coreNode -> renderer ( ) ) return false ; return controller -> pauseAnimationAtTime ( coreNode -> renderer ( ) , animationName , time ) ; }
Pause a given CSS animation or transition on the target node at a specific time.
Pause a given CSS animation or transition on the target node at a specific time .