Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Individually paused / playing animations are not effected by Play All…
… Animations and Pause All Animations https://bugs.webkit.org/show_bug.cgi?id=251738 rdar://105043493 Reviewed by Andres Gonzalez. Prior to this patch, given this sequence: 1. Load a page with a GIF animation 2. Individually pause that animation 3. Perform Play All Animations The animation does not start playing again. With this patch, RenderView::updatePlayStateForAllAnimations now overrides any individual animation state, making Play All Animations and Pause All Animations behave as expected. Test case added to fast/images/page-wide-animation-toggle.html to cover this behavior. * LayoutTests/fast/images/mac/play-pause-individual-animation-context-menu-items.html: The js-test.js and resource import for this test was wrong, so I fixed it. * LayoutTests/fast/images/page-wide-animation-toggle-expected.txt: * LayoutTests/fast/images/page-wide-animation-toggle.html: * Source/WebCore/html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::setAllowsAnimation): * Source/WebCore/html/HTMLImageElement.h: * Source/WebCore/page/Page.cpp: (WebCore::Page::setImageAnimationEnabled): * Source/WebCore/rendering/RenderView.cpp: (WebCore::RenderView::updatePlayStateForAllAnimations): * Source/WebCore/html/HTMLImageElement.h: * Source/WebCore/page/FrameView.cpp: * Source/WebCore/page/FrameView.h: * Source/WebCore/page/Page.cpp: * Source/WebCore/page/Page.h: * Source/WebCore/rendering/RenderView.h: Use ENABLE(ACCESSIBILITY_ANIMATION_CONTROL) in more places (we have to, because HTMLImageElement::setAllowsAnimation is only defined under this flag, and with this patch we start using that function in RenderView::updatePlayStateForAllAnimations). Canonical link: https://commits.webkit.org/259971@main
- Loading branch information
Showing
11 changed files
with
68 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters