Changeset 218311 in webkit


Ignore:
Timestamp:
Jun 14, 2017 7:36:36 PM (7 years ago)
Author:
Alan Bujtas
Message:

animations-paused-in-background-page.html and animated-svg-image-removed-from-document-paused.html fail after r218284
https://bugs.webkit.org/show_bug.cgi?id=173393

Reviewed by Simon Fraser.

Testing cares really about whether the animation has initiated.

  • platform/graphics/Image.h:

(WebCore::Image::animationPending):

  • testing/Internals.cpp:

(WebCore::Internals::isImageAnimating):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r218300 r218311  
     12017-06-14  Zalan Bujtas  <zalan@apple.com>
     2
     3        animations-paused-in-background-page.html and animated-svg-image-removed-from-document-paused.html fail after r218284
     4        https://bugs.webkit.org/show_bug.cgi?id=173393
     5
     6        Reviewed by Simon Fraser.
     7
     8        Testing cares really about whether the animation has initiated. 
     9
     10        * platform/graphics/Image.h:
     11        (WebCore::Image::animationPending):
     12        * testing/Internals.cpp:
     13        (WebCore::Internals::isImageAnimating):
     14
    1152017-06-14  Dean Jackson  <dino@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/Image.h

    r218284 r218311  
    136136    virtual void imageFrameAvailableAtIndex(size_t) { }
    137137    virtual bool isAnimating() const { return false; }
     138    bool animationPending() const { return m_animationStartTimer.isActive(); }
    138139   
    139140    // Typically the CachedImage that owns us.
  • trunk/Source/WebCore/testing/Internals.cpp

    r218083 r218311  
    802802        return false;
    803803
    804     return image->isAnimating();
     804    return image->isAnimating() || image->animationPending();
    805805}
    806806
Note: See TracChangeset for help on using the changeset viewer.