Changeset 116729 in webkit


Ignore:
Timestamp:
May 10, 2012 10:31:35 PM (12 years ago)
Author:
gyuyoung.kim@samsung.com
Message:

Move resumeAnimations to use Internals interface
https://bugs.webkit.org/show_bug.cgi?id=86063

Reviewed by Alexey Proskuryakov.

.:

  • Source/autotools/symbols.filter: Add a symbol filter for resumeAnimations.

Source/WebCore:

Add resumeAnimations functions, because it is able to work in the
cross-port way through the Internals interface.

No new tests, since we are improving here the infra-structure for testing
a specific method.

  • testing/Internals.cpp:

(WebCore::Internals::resumeAnimations):
(WebCore):

  • testing/Internals.h:

(Internals):

  • testing/Internals.idl:

Source/WebKit/efl:

Remove resumeAnimations functions, because it is able to work in the
cross-port way through the Internals interface.

  • WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
  • WebCoreSupport/DumpRenderTreeSupportEfl.h:

Source/WebKit/gtk:

Remove resumeAnimations functions, because it is able to work in the
cross-port way through the Internals interface.

  • WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
  • WebCoreSupport/DumpRenderTreeSupportGtk.h:

(DumpRenderTreeSupportGtk):

Source/WebKit/mac:

Remove resumeAnimations functions, because it is able to work in the
cross-port way through the Internals interface.

  • WebKit.order:
  • WebView/WebFrame.mm:
  • WebView/WebFramePrivate.h:

Source/WebKit/qt:

Remove resumeAnimations functions, because it is able to work in the
cross-port way through the Internals interface.

  • WebCoreSupport/DumpRenderTreeSupportQt.cpp:
  • WebCoreSupport/DumpRenderTreeSupportQt.h:

Source/WebKit/win:

Remove resumeAnimations functions, because it is able to work in the
cross-port way through the Internals interface.

  • Interfaces/IWebFramePrivate.idl:
  • WebFrame.cpp:
  • WebFrame.h:

Source/WebKit2:

  • win/WebKit2.def: Add a symbol filter for resumeAnimations.

Tools:

Remove resumeAnimations functions, because it is able to work in the
cross-port way through the Internals interface.

  • DumpRenderTree/LayoutTestController.cpp:

(LayoutTestController::staticFunctions):

  • DumpRenderTree/LayoutTestController.h:

(LayoutTestController):

  • DumpRenderTree/blackberry/LayoutTestControllerBlackBerry.cpp:
  • DumpRenderTree/chromium/LayoutTestController.cpp:

(LayoutTestController::LayoutTestController):

  • DumpRenderTree/chromium/LayoutTestController.h:

(LayoutTestController):

  • DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
  • DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
  • DumpRenderTree/mac/LayoutTestControllerMac.mm:
  • DumpRenderTree/qt/LayoutTestControllerQt.cpp:
  • DumpRenderTree/qt/LayoutTestControllerQt.h:

(LayoutTestController):

  • DumpRenderTree/win/LayoutTestControllerWin.cpp:
  • DumpRenderTree/wx/LayoutTestControllerWx.cpp:
  • WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
  • WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
  • WebKitTestRunner/InjectedBundle/LayoutTestController.h:

(LayoutTestController):

LayoutTests:

Call resumeAnimations functions from internals, because it is able to work in the
cross-port way through the Internals interface.

  • animations/play-state-suspend.html:
  • animations/stop-animation-on-suspend.html:
  • animations/suspend-resume-animation-events.html:
  • animations/suspend-resume-animation.html:
Location:
trunk
Files:
46 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r116679 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * Source/autotools/symbols.filter: Add a symbol filter for resumeAnimations.
     9
    1102012-05-10  Zan Dobersek  <zandobersek@gmail.com>
    211
  • trunk/LayoutTests/ChangeLog

    r116728 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Call resumeAnimations functions from internals, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        * animations/play-state-suspend.html:
     12        * animations/stop-animation-on-suspend.html:
     13        * animations/suspend-resume-animation-events.html:
     14        * animations/suspend-resume-animation.html:
     15
    1162012-05-10  Kent Tamura  <tkent@chromium.org>
    217
  • trunk/LayoutTests/animations/play-state-suspend.html

    r116610 r116729  
    6969    function resume()
    7070    {
    71         if (window.layoutTestController)
    72             layoutTestController.resumeAnimations();
     71        if (window.internals)
     72            internals.resumeAnimations(document);
    7373    }
    7474
  • trunk/LayoutTests/animations/stop-animation-on-suspend.html

    r116610 r116729  
    4747    function resume()
    4848    {
    49         if (window.layoutTestController)
    50             layoutTestController.resumeAnimations();
     49        if (window.internals)
     50            internals.resumeAnimations(document);
    5151    }
    5252   
  • trunk/LayoutTests/animations/suspend-resume-animation-events.html

    r116610 r116729  
    3737    function resume()
    3838    {
    39         if (window.layoutTestController)
    40             layoutTestController.resumeAnimations();
     39        if (window.internals)
     40            internals.resumeAnimations(document);
    4141    }
    4242   
  • trunk/LayoutTests/animations/suspend-resume-animation.html

    r116610 r116729  
    3636    function resume()
    3737    {
    38         if (window.layoutTestController)
    39             layoutTestController.resumeAnimations();
     38        if (window.internals)
     39            internals.resumeAnimations(document);
    4040    }
    4141   
  • trunk/Source/WebCore/ChangeLog

    r116727 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Add resumeAnimations functions, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        No new tests, since we are improving here the infra-structure for testing
     12        a specific method.
     13
     14        * testing/Internals.cpp:
     15        (WebCore::Internals::resumeAnimations):
     16        (WebCore):
     17        * testing/Internals.h:
     18        (Internals):
     19        * testing/Internals.idl:
     20
    1212012-05-10  Min Qin  <qinmin@google.com>
    222
  • trunk/Source/WebCore/testing/Internals.cpp

    r116650 r116729  
    10211021}
    10221022
     1023void Internals::resumeAnimations(Document* document, ExceptionCode& ec) const
     1024{
     1025    if (!document || !document->frame()) {
     1026        ec = INVALID_ACCESS_ERR;
     1027        return;
     1028    }
     1029
     1030    AnimationController* controller = document->frame()->animation();
     1031    if (!controller)
     1032        return;
     1033
     1034    controller->resumeAnimations();
     1035}
     1036
     1037
    10231038#if ENABLE(FULLSCREEN_API)
    10241039void Internals::webkitWillEnterFullScreenForElement(Document* document, Element* element)
  • trunk/Source/WebCore/testing/Internals.h

    r116610 r116729  
    165165
    166166    void suspendAnimations(Document*, ExceptionCode&) const;
     167    void resumeAnimations(Document*, ExceptionCode&) const;
    167168
    168169#if ENABLE(INSPECTOR)
  • trunk/Source/WebCore/testing/Internals.idl

    r116610 r116729  
    134134
    135135        void suspendAnimations(in Document document) raises (DOMException);
     136        void resumeAnimations(in Document document) raises (DOMException);
    136137
    137138#if defined(ENABLE_BATTERY_STATUS) && ENABLE_BATTERY_STATUS
  • trunk/Source/WebKit/efl/ChangeLog

    r116726 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Remove resumeAnimations functions, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        * WebCoreSupport/DumpRenderTreeSupportEfl.cpp:
     12        * WebCoreSupport/DumpRenderTreeSupportEfl.h:
     13
    1142012-05-10  Kangil Han  <kangil.han@samsung.com>
    215
  • trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp

    r116639 r116729  
    279279}
    280280
    281 void DumpRenderTreeSupportEfl::resumeAnimations(Evas_Object* ewkFrame)
    282 {
    283     WebCore::Frame* frame = EWKPrivate::coreFrame(ewkFrame);
    284 
    285     if (!frame)
    286         return;
    287 
    288     WebCore::AnimationController *animationController = frame->animation();
    289     if (animationController)
    290         animationController->resumeAnimations();
    291 }
    292 
    293281WebCore::IntRect DumpRenderTreeSupportEfl::selectionRectangle(const Evas_Object* ewkFrame)
    294282{
  • trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h

    r116639 r116729  
    6363    static String renderTreeDump(Evas_Object* ewkFrame);
    6464    static String responseMimeType(const Evas_Object* ewkFrame);
    65     static void resumeAnimations(Evas_Object* ewkFrame);
    6665    static WebCore::IntRect selectionRectangle(const Evas_Object* ewkFrame);
    6766    static String suitableDRTFrameName(const Evas_Object* ewkFrame);
  • trunk/Source/WebKit/gtk/ChangeLog

    r116610 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Remove resumeAnimations functions, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
     12        * WebCoreSupport/DumpRenderTreeSupportGtk.h:
     13        (DumpRenderTreeSupportGtk):
     14
    1152012-05-09  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp

    r116610 r116729  
    364364}
    365365
    366 void DumpRenderTreeSupportGtk::resumeAnimations(WebKitWebFrame* frame)
    367 {
    368     Frame* coreFrame = core(frame);
    369     if (!coreFrame)
    370         return;
    371 
    372     return coreFrame->animation()->resumeAnimations();
    373 }
    374 
    375366void DumpRenderTreeSupportGtk::clearMainFrameName(WebKitWebFrame* frame)
    376367{
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h

    r116610 r116729  
    7373    static WTF::CString markerTextForListItem(WebKitWebFrame*, JSContextRef, JSValueRef nodeObject);
    7474    static unsigned int numberOfActiveAnimations(WebKitWebFrame*);
    75     static void resumeAnimations(WebKitWebFrame*);
    7675    static void clearMainFrameName(WebKitWebFrame*);
    7776    static AtkObject* getFocusedAccessibleElement(WebKitWebFrame*);
  • trunk/Source/WebKit/mac/ChangeLog

    r116695 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Remove resumeAnimations functions, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        * WebKit.order:
     12        * WebView/WebFrame.mm:
     13        * WebView/WebFramePrivate.h:
     14
    1152012-05-10  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit/mac/WebKit.order

    r116610 r116729  
    12221222-[WebView(WebPrivate) setFrameSize:]
    12231223-[WebFrame(WebKitDebug) renderTreeAsExternalRepresentationForPrinting:]
    1224 -[WebFrame(WebPrivate) _resumeAnimations]
    12251224+[WebView(WebPrivate) _pointingHandCursor]
    12261225_WKGetCFURLResponseURL
  • trunk/Source/WebKit/mac/WebView/WebFrame.mm

    r116610 r116729  
    999999}
    10001000
    1001 - (void) _resumeAnimations
    1002 {
    1003     Frame* frame = core(self);
    1004     if (!frame)
    1005         return;
    1006 
    1007     frame->animation()->resumeAnimations();
    1008 }
    1009 
    10101001- (void)_replaceSelectionWithFragment:(DOMDocumentFragment *)fragment selectReplacement:(BOOL)selectReplacement smartReplace:(BOOL)smartReplace matchStyle:(BOOL)matchStyle
    10111002{
  • trunk/Source/WebKit/mac/WebView/WebFramePrivate.h

    r116610 r116729  
    108108- (unsigned)_numberOfActiveAnimations;
    109109
    110 // Suspend and resume animations (includes both CSS transitions and CSS animations).
    111 - (void)_resumeAnimations;
    112 
    113110- (void)_replaceSelectionWithFragment:(DOMDocumentFragment *)fragment selectReplacement:(BOOL)selectReplacement smartReplace:(BOOL)smartReplace matchStyle:(BOOL)matchStyle;
    114111- (void)_replaceSelectionWithText:(NSString *)text selectReplacement:(BOOL)selectReplacement smartReplace:(BOOL)smartReplace;
  • trunk/Source/WebKit/qt/ChangeLog

    r116631 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Remove resumeAnimations functions, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
     12        * WebCoreSupport/DumpRenderTreeSupportQt.h:
     13
    1142012-05-10  Marius Storm-Olsen  <marius.storm-olsen@nokia.com>
    215
  • trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp

    r116610 r116729  
    385385}
    386386
    387 void DumpRenderTreeSupportQt::resumeAnimations(QWebFrame *frame)
    388 {
    389     Frame* coreFrame = QWebFramePrivate::core(frame);
    390     if (!coreFrame)
    391         return;
    392 
    393     AnimationController* controller = coreFrame->animation();
    394     if (!controller)
    395         return;
    396 
    397     controller->resumeAnimations();
    398 }
    399 
    400387void DumpRenderTreeSupportQt::clearFrameName(QWebFrame* frame)
    401388{
  • trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h

    r116610 r116729  
    142142    static void overwritePluginDirectories();
    143143    static int numberOfActiveAnimations(QWebFrame*);
    144     static void resumeAnimations(QWebFrame*);
    145144    static int numberOfPages(QWebFrame* frame, float width, float height);
    146145    static int pageNumberForElementById(QWebFrame* frame, const QString& id, float width, float height);
  • trunk/Source/WebKit/win/ChangeLog

    r116687 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Remove resumeAnimations functions, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        * Interfaces/IWebFramePrivate.idl:
     12        * WebFrame.cpp:
     13        * WebFrame.h:
     14
    1152012-05-10  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit/win/Interfaces/IWebFramePrivate.idl

    r116610 r116729  
    111111    HRESULT renderTreeAsExternalRepresentation([in] BOOL forPrinting, [out, retval] BSTR* result);
    112112
    113     HRESULT resumeAnimations();
    114 
    115113    HRESULT loadPlainTextString([in] BSTR string, [in] BSTR url);
    116114
  • trunk/Source/WebKit/win/WebFrame.cpp

    r116610 r116729  
    13121312}
    13131313
    1314 HRESULT WebFrame::resumeAnimations()
    1315 {
    1316     Frame* frame = core(this);
    1317     if (!frame)
    1318         return E_FAIL;
    1319 
    1320     frame->animation()->resumeAnimations();
    1321     return S_OK;
    1322 }
    1323 
    13241314HRESULT WebFrame::isDisplayingStandaloneImage(BOOL* result)
    13251315{
  • trunk/Source/WebKit/win/WebFrame.h

    r116610 r116729  
    261261    virtual HRESULT STDMETHODCALLTYPE pauseTransition(BSTR propertyName, IDOMNode*, double secondsFromNow, BOOL* transitionWasRunning);
    262262    virtual HRESULT STDMETHODCALLTYPE numberOfActiveAnimations(UINT*);
    263     virtual HRESULT STDMETHODCALLTYPE resumeAnimations();
    264263    virtual HRESULT STDMETHODCALLTYPE loadPlainTextString(BSTR string, BSTR url);
    265264
  • trunk/Source/WebKit2/ChangeLog

    r116720 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        * win/WebKit2.def: Add a symbol filter for resumeAnimations.
     9
    1102012-05-10  Anders Carlsson  <andersca@apple.com>
    211
  • trunk/Source/WebKit2/win/WebKit2.def

    r116610 r116729  
    257257        ?isPageBoxVisible@Document@WebCore@@QAE_NH@Z
    258258        ?suspendAnimations@AnimationController@WebCore@@QAEXXZ
     259        ?resumeAnimations@AnimationController@WebCore@@QAEXXZ
  • trunk/Source/autotools/symbols.filter

    r116610 r116729  
    109109_ZN7WebCore8Document16isPageBoxVisibleEi;
    110110_ZN7WebCore19AnimationController17suspendAnimationsEv;
     111_ZN7WebCore19AnimationController16resumeAnimationsEv;
    111112_ZNK7WebCore19InspectorController12getHighlightEPNS_9HighlightE;
    112113_ZN7WebCore24InspectorInstrumentation26instrumentingAgentsForPageEPNS_4PageE;
  • trunk/Tools/ChangeLog

    r116719 r116729  
     12012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
     2
     3        Move resumeAnimations to use Internals interface
     4        https://bugs.webkit.org/show_bug.cgi?id=86063
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Remove resumeAnimations functions, because it is able to work in the
     9        cross-port way through the Internals interface.
     10
     11        * DumpRenderTree/LayoutTestController.cpp:
     12        (LayoutTestController::staticFunctions):
     13        * DumpRenderTree/LayoutTestController.h:
     14        (LayoutTestController):
     15        * DumpRenderTree/blackberry/LayoutTestControllerBlackBerry.cpp:
     16        * DumpRenderTree/chromium/LayoutTestController.cpp:
     17        (LayoutTestController::LayoutTestController):
     18        * DumpRenderTree/chromium/LayoutTestController.h:
     19        (LayoutTestController):
     20        * DumpRenderTree/efl/LayoutTestControllerEfl.cpp:
     21        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
     22        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
     23        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
     24        * DumpRenderTree/qt/LayoutTestControllerQt.h:
     25        (LayoutTestController):
     26        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
     27        * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
     28        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
     29        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
     30        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
     31        (LayoutTestController):
     32
    1332012-05-10  Alexey Proskuryakov  <ap@apple.com>
    234
  • trunk/Tools/DumpRenderTree/LayoutTestController.cpp

    r116610 r116729  
    18601860    LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject));
    18611861    return JSValueMakeNumber(context, controller->numberOfActiveAnimations());
    1862 }
    1863 
    1864 static JSValueRef resumeAnimationsCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    1865 {
    1866     LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject));
    1867     controller->resumeAnimations();
    1868     return JSValueMakeUndefined(context);
    18691862}
    18701863
     
    23442337        { "notifyDone", notifyDoneCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    23452338        { "numberOfActiveAnimations", numberOfActiveAnimationsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    2346         { "resumeAnimations", resumeAnimationsCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    23472339        { "overridePreference", overridePreferenceCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
    23482340        { "pageNumberForElementById", pageNumberForElementByIdCallback, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete },
  • trunk/Tools/DumpRenderTree/LayoutTestController.h

    r116610 r116729  
    291291    bool pauseTransitionAtTimeOnElementWithId(JSStringRef propertyName, double time, JSStringRef elementId);
    292292    unsigned numberOfActiveAnimations() const;
    293     void resumeAnimations() const;
    294293
    295294    void addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains);
  • trunk/Tools/DumpRenderTree/blackberry/LayoutTestControllerBlackBerry.cpp

    r116610 r116729  
    706706}
    707707
    708 void LayoutTestController::resumeAnimations() const
    709 {
    710     if (mainFrame && mainFrame->animation())
    711         mainFrame->animation()->resumeAnimations();
    712 }
    713 
    714708void LayoutTestController::setSerializeHTTPLoads(bool)
    715709{
  • trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp

    r116610 r116729  
    166166    bindMethod("repaintSweepHorizontally", &LayoutTestController::repaintSweepHorizontally);
    167167    bindMethod("resetPageVisibility", &LayoutTestController::resetPageVisibility);
    168     bindMethod("resumeAnimations", &LayoutTestController::resumeAnimations);
    169168    bindMethod("setAcceptsEditing", &LayoutTestController::setAcceptsEditing);
    170169    bindMethod("setAllowDisplayOfInsecureContent", &LayoutTestController::setAllowDisplayOfInsecureContent);
     
    10651064}
    10661065
    1067 void LayoutTestController::resumeAnimations()
    1068 {
    1069     WebFrame* webFrame = m_shell->webView()->mainFrame();
    1070     if (!webFrame)
    1071         return;
    1072 
    1073     WebAnimationController* controller = webFrame->animationController();
    1074     if (!controller)
    1075         return;
    1076 
    1077     controller->resumeAnimations();
    1078 }
    1079 
    10801066void LayoutTestController::pauseAnimationAtTimeOnElementWithId(const CppArgumentList& arguments, CppVariant* result)
    10811067{
     
    11471133{
    11481134    result->set(numberOfActiveAnimations());
    1149 }
    1150 
    1151 void LayoutTestController::resumeAnimations(const CppArgumentList&, CppVariant* result)
    1152 {
    1153     resumeAnimations();
    1154     result->setNull();
    11551135}
    11561136
  • trunk/Tools/DumpRenderTree/chromium/LayoutTestController.h

    r116610 r116729  
    244244    void disableAutoResizeMode(const CppArgumentList&, CppVariant*);
    245245    void numberOfActiveAnimations(const CppArgumentList&, CppVariant*);
    246     void resumeAnimations(const CppArgumentList&, CppVariant*);
    247246    void disableImageLoading(const CppArgumentList&, CppVariant*);
    248247    void setIconDatabaseEnabled(const CppArgumentList&, CppVariant*);
     
    574573    bool elementDoesAutoCompleteForElementWithId(const WebKit::WebString&);
    575574    int numberOfActiveAnimations();
    576     void resumeAnimations();
    577575
    578576    // Used for test timeouts.
  • trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp

    r116639 r116729  
    649649}
    650650
    651 void LayoutTestController::resumeAnimations() const
    652 {
    653     DumpRenderTreeSupportEfl::resumeAnimations(browser->mainFrame());
    654 }
    655 
    656651static inline bool toBool(JSStringRef value)
    657652{
  • trunk/Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp

    r116610 r116729  
    786786{
    787787    return DumpRenderTreeSupportGtk::numberOfActiveAnimations(mainFrame);
    788 }
    789 
    790 void LayoutTestController::resumeAnimations() const
    791 {
    792     DumpRenderTreeSupportGtk::resumeAnimations(mainFrame);
    793788}
    794789
  • trunk/Tools/DumpRenderTree/mac/LayoutTestControllerMac.mm

    r116610 r116729  
    845845}
    846846
    847 void LayoutTestController::resumeAnimations() const
    848 {
    849     return [mainFrame _resumeAnimations];
    850 }
    851 
    852847void LayoutTestController::waitForPolicyDelegate()
    853848{
  • trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.cpp

    r116610 r116729  
    570570}
    571571
    572 void LayoutTestController::resumeAnimations() const
    573 {
    574     QWebFrame* frame = m_drt->webPage()->mainFrame();
    575     Q_ASSERT(frame);
    576     DumpRenderTreeSupportQt::resumeAnimations(frame);
    577 }
    578 
    579572void LayoutTestController::disableImageLoading()
    580573{
  • trunk/Tools/DumpRenderTree/qt/LayoutTestControllerQt.h

    r116610 r116729  
    188188
    189189    unsigned numberOfActiveAnimations() const;
    190     void resumeAnimations() const;
    191190
    192191    void addOriginAccessWhitelistEntry(const QString& sourceOrigin, const QString& destinationProtocol, const QString& destinationHost, bool allowDestinationSubdomains);
  • trunk/Tools/DumpRenderTree/win/LayoutTestControllerWin.cpp

    r116610 r116729  
    11231123}
    11241124
    1125 void LayoutTestController::resumeAnimations() const
    1126 {
    1127     COMPtr<IWebFramePrivate> framePrivate(Query, frame);
    1128     if (!framePrivate)
    1129         return;
    1130 
    1131     framePrivate->resumeAnimations();
    1132 }
    1133 
    11341125static _bstr_t bstrT(JSStringRef jsString)
    11351126{
  • trunk/Tools/DumpRenderTree/wx/LayoutTestControllerWx.cpp

    r116610 r116729  
    314314}
    315315
    316 void LayoutTestController::resumeAnimations() const
    317 {
    318     // FIXME: implement
    319 }
    320 
    321316unsigned LayoutTestController::workerThreadCount() const
    322317{
  • trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl

    r116338 r116729  
    9292        boolean pauseTransitionAtTimeOnElementWithId(in DOMString propertyName, in double time, in DOMString elementId);
    9393        void suspendAnimations();
    94         void resumeAnimations();
    9594
    9695        // UserContent testing.
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp

    r116338 r116729  
    210210}
    211211
    212 void LayoutTestController::resumeAnimations()
    213 {
    214     WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page());
    215     WKBundleFrameResumeAnimations(mainFrame);
    216 }
    217 
    218212JSRetainPtr<JSStringRef> LayoutTestController::layerTreeAsText() const
    219213{
  • trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h

    r116338 r116729  
    115115    bool pauseTransitionAtTimeOnElementWithId(JSStringRef propertyName, double time, JSStringRef elementId);
    116116    void suspendAnimations();
    117     void resumeAnimations();
    118117   
    119118    // Compositing testing.
Note: See TracChangeset for help on using the changeset viewer.