Bug 139714 - Regression(r163928): Animated images are not resumed on window resizing
Summary: Regression(r163928): Animated images are not resumed on window resizing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-12-16 17:29 PST by Chris Dumez
Modified: 2015-01-06 10:56 PST (History)
9 users (show)

See Also:


Attachments
Patch (5.09 KB, patch)
2014-12-16 17:38 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (5.16 KB, patch)
2014-12-16 17:39 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews101 for mac-mountainlion (560.93 KB, application/zip)
2014-12-16 18:11 PST, Build Bot
no flags Details
Patch (6.45 KB, patch)
2015-01-05 10:00 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (9.31 KB, patch)
2015-01-05 11:55 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-mountainlion (509.34 KB, application/zip)
2015-01-05 12:42 PST, Build Bot
no flags Details
Patch (9.30 KB, patch)
2015-01-05 12:46 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2014-12-16 17:29:46 PST
After r163928, animated images are not resumed if they become visible after resizing the window.

Radar: <rdar://problem/18855285>
Comment 1 Chris Dumez 2014-12-16 17:38:26 PST
Created attachment 243410 [details]
Patch
Comment 2 Chris Dumez 2014-12-16 17:39:50 PST
Created attachment 243411 [details]
Patch
Comment 3 Build Bot 2014-12-16 18:11:36 PST
Comment on attachment 243411 [details]
Patch

Attachment 243411 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5125808679026688

New failing tests:
fast/images/animated-gif-window-resizing.html
Comment 4 Build Bot 2014-12-16 18:11:40 PST
Created attachment 243416 [details]
Archive of layout-test-results from ews101 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 5 Chris Dumez 2015-01-05 10:00:28 PST
Created attachment 243980 [details]
Patch
Comment 6 Darin Adler 2015-01-05 10:08:02 PST
Comment on attachment 243980 [details]
Patch

Is this really the only bottleneck we missed? What about zooming, for example? It’s not entirely clear why this is the one place to call this.
Comment 7 Chris Dumez 2015-01-05 10:28:22 PST
(In reply to comment #6)
> Comment on attachment 243980 [details]
> Patch
> 
> Is this really the only bottleneck we missed? What about zooming, for
> example? It’s not entirely clear why this is the one place to call this.

Doesn't zooming update the FrameRect? I assumed so. I'll check.
Comment 8 Chris Dumez 2015-01-05 11:55:15 PST
Created attachment 243984 [details]
Patch
Comment 9 Chris Dumez 2015-01-05 11:56:10 PST
(In reply to comment #6)
> Comment on attachment 243980 [details]
> Patch
> 
> Is this really the only bottleneck we missed? What about zooming, for
> example? It’s not entirely clear why this is the one place to call this.

I am unable to reproduce the issue when zooming in / out. I added a layout test to cover this as well.
Comment 10 Build Bot 2015-01-05 12:42:38 PST
Comment on attachment 243984 [details]
Patch

Attachment 243984 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5328102712410112

New failing tests:
fast/images/animated-gif-zooming.html
Comment 11 Build Bot 2015-01-05 12:42:42 PST
Created attachment 243989 [details]
Archive of layout-test-results from ews103 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-mountainlion  Platform: Mac OS X 10.8.5
Comment 12 Chris Dumez 2015-01-05 12:46:45 PST
Created attachment 243992 [details]
Patch
Comment 13 WebKit Commit Bot 2015-01-05 13:44:33 PST
Comment on attachment 243992 [details]
Patch

Clearing flags on attachment: 243992

Committed r177927: <http://trac.webkit.org/changeset/177927>
Comment 14 WebKit Commit Bot 2015-01-05 13:44:40 PST
All reviewed patches have been landed.  Closing bug.
Comment 15 Simon Fraser (smfr) 2015-01-06 10:56:30 PST
Comment on attachment 243992 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243992&action=review

> Source/WebCore/page/FrameView.cpp:463
> +    resumeVisibleImageAnimationsIncludingSubframes();

I'm concerned that we're adding calls to this in seemingly arbitrary places. Can we have a bottleneck that captures the notion of what underlying conditions change that require this to be called?