Changeset 177927 in webkit


Ignore:
Timestamp:
Jan 5, 2015 1:44:32 PM (9 years ago)
Author:
Chris Dumez
Message:

Regression(r163928): Animated images are not resumed on window resizing
https://bugs.webkit.org/show_bug.cgi?id=139714
<rdar://problem/18855285>

Reviewed by Darin Adler.

Source/WebCore:

After r163928, animated images were not resumed if they became visible
after resizing the window. This patch calls resumes animated images if
necessary in FrameView::setFrameRect() to handle this case properly.

Tests: fast/images/animated-gif-window-resizing.html

fast/images/animated-gif-zooming.html

  • page/FrameView.cpp:

(WebCore::FrameView::setFrameRect):

LayoutTests:

Add a layout test to make sure animated images are correctly paused /
resumed when resizing the window.

Also add another test to make sure animated images are correctly paused
/ resumed when zooming in and out.

  • fast/images/animated-gif-window-resizing-expected.txt: Added.
  • fast/images/animated-gif-window-resizing.html: Added.
  • fast/images/animated-gif-zooming-expected.txt: Added.
  • fast/images/animated-gif-zooming.html: Added.
  • fast/images/resources/animated-gif-window-resize.html: Added.
  • platform/mac-wk1/TestExpectations:
Location:
trunk
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r177919 r177927  
     12015-01-05  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r163928): Animated images are not resumed on window resizing
     4        https://bugs.webkit.org/show_bug.cgi?id=139714
     5        <rdar://problem/18855285>
     6
     7        Reviewed by Darin Adler.
     8
     9        Add a layout test to make sure animated images are correctly paused /
     10        resumed when resizing the window.
     11
     12        Also add another test to make sure animated images are correctly paused
     13        / resumed when zooming in and out.
     14
     15        * fast/images/animated-gif-window-resizing-expected.txt: Added.
     16        * fast/images/animated-gif-window-resizing.html: Added.
     17        * fast/images/animated-gif-zooming-expected.txt: Added.
     18        * fast/images/animated-gif-zooming.html: Added.
     19        * fast/images/resources/animated-gif-window-resize.html: Added.
     20        * platform/mac-wk1/TestExpectations:
     21
    1222015-01-05  Alexey Proskuryakov  <ap@apple.com>
    223
  • trunk/LayoutTests/platform/mac-wk1/TestExpectations

    r177837 r177927  
    2828
    2929webkit.org/b/112533 media/auto-play-in-sandbox-with-allow-scripts.html [ Pass Timeout ]
    30 
    31 webkit.org/b/139599 fast/images/animated-gif-body-outside-viewport.html [ Pass Failure Timeout ]
    3230
    3331webkit.org/b/139778 fullscreen/exit-full-screen-iframe.html [ Skip ]
     
    6765plugins/snapshotting
    6866
     67# Animated image throttling behaves differently on WK1.
     68fast/images/animated-gif-body-outside-viewport.html [ Skip ]
     69fast/images/animated-gif-window-resizing.html [ Skip ]
     70fast/images/animated-gif-zooming.html [ Skip ]
     71
    6972# Mavericks and prior do not support contentInset
    7073[ MountainLion Mavericks ] platform/mac/fast/events/content-inset-hit-testing.html [ Skip ]
  • trunk/Source/WebCore/ChangeLog

    r177925 r177927  
     12015-01-05  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r163928): Animated images are not resumed on window resizing
     4        https://bugs.webkit.org/show_bug.cgi?id=139714
     5        <rdar://problem/18855285>
     6
     7        Reviewed by Darin Adler.
     8
     9        After r163928, animated images were not resumed if they became visible
     10        after resizing the window. This patch calls resumes animated images if
     11        necessary in FrameView::setFrameRect() to handle this case properly.
     12
     13        Tests: fast/images/animated-gif-window-resizing.html
     14               fast/images/animated-gif-zooming.html
     15
     16        * page/FrameView.cpp:
     17        (WebCore::FrameView::setFrameRect):
     18
    1192015-01-01  Brian J. Burg  <burg@cs.washington.edu>
    220
  • trunk/Source/WebCore/page/FrameView.cpp

    r177925 r177927  
    459459    if (frame().isMainFrame())
    460460        frame().mainFrame().pageOverlayController().didChangeViewSize();
     461
     462    // The frame view was resized, check if we should resume animated images.
     463    resumeVisibleImageAnimationsIncludingSubframes();
    461464}
    462465
Note: See TracChangeset for help on using the changeset viewer.