⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 242936 in webkit


Ignore:
Timestamp:
Mar 13, 2019, 10:44:24 PM (7 years ago)
Author:
benjamin@webkit.org
Message:

Fix the argument type of RenderView::resumePausedImageAnimationsIfNeeded()
https://bugs.webkit.org/show_bug.cgi?id=195659

Reviewed by Saam Barati.

The two callers of resumePausedImageAnimationsIfNeeded() both get the IntRect
as a reference. The rect was going on the stack then used as a reference again.

  • rendering/RenderView.cpp:

(WebCore::RenderView::resumePausedImageAnimationsIfNeeded):

  • rendering/RenderView.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r242935 r242936  
     12019-03-13  Benjamin Poulain  <benjamin@webkit.org>
     2
     3        Fix the argument type of RenderView::resumePausedImageAnimationsIfNeeded()
     4        https://bugs.webkit.org/show_bug.cgi?id=195659
     5
     6        Reviewed by Saam Barati.
     7
     8        The two callers of resumePausedImageAnimationsIfNeeded() both get the IntRect
     9        as a reference. The rect was going on the stack then used as a reference again.
     10
     11        * rendering/RenderView.cpp:
     12        (WebCore::RenderView::resumePausedImageAnimationsIfNeeded):
     13        * rendering/RenderView.h:
     14
    1152019-03-13  Zalan Bujtas  <zalan@apple.com>
    216
  • trunk/Source/WebCore/rendering/RenderView.cpp

    r239461 r242936  
    865865}
    866866
    867 void RenderView::resumePausedImageAnimationsIfNeeded(IntRect visibleRect)
     867void RenderView::resumePausedImageAnimationsIfNeeded(const IntRect& visibleRect)
    868868{
    869869    Vector<std::pair<RenderElement*, CachedImage*>, 10> toRemove;
  • trunk/Source/WebCore/rendering/RenderView.h

    r239427 r242936  
    167167    void registerForVisibleInViewportCallback(RenderElement&);
    168168    void unregisterForVisibleInViewportCallback(RenderElement&);
    169     void resumePausedImageAnimationsIfNeeded(IntRect visibleRect);
     169    void resumePausedImageAnimationsIfNeeded(const IntRect& visibleRect);
    170170    void addRendererWithPausedImageAnimations(RenderElement&, CachedImage&);
    171171    void removeRendererWithPausedImageAnimations(RenderElement&);
Note: See TracChangeset for help on using the changeset viewer.