Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Layout Test animations/needs-layout.html is a flaky Image Failure.
https://bugs.webkit.org/show_bug.cgi?id=172397 Reviewed by Dean Jackson. Source/WebCore: Animations that animate a transform and uses a relative value for either the x or y components require a layout before starting, which CSSAnimationController would perform in the call to CSSAnimationControllerPrivate::animationTimerFired() made immediately after a CSS animation was created. We now perform a similar task where upon setting new blending keyframes we compute a flag indicating if the keyframe effect is animating a transform with relative x or y components. Then, when we perform the first invalidation task, which runs in the next run loop after a change to the timing model has been made, such as a call to play() on a CSSAnimation made in the TreeResolver::createAnimatedElementUpdate() where the CSSAnimation was created, we call forceLayout() on this element's FrameView. We also ensure we commit animations on the compositor immediately after that too, instead of waiting until the next DisplayRefreshMonitor callback. * animation/DocumentTimeline.cpp: (WebCore::DocumentTimeline::performInvalidationTask): (WebCore::DocumentTimeline::updateAnimations): * animation/KeyframeEffectReadOnly.cpp: (WebCore::KeyframeEffectReadOnly::forceLayoutIfNeeded): (WebCore::KeyframeEffectReadOnly::setBlendingKeyframes): (WebCore::KeyframeEffectReadOnly::computedNeedsForcedLayout): (WebCore::KeyframeEffectReadOnly::applyPendingAcceleratedActions): * animation/KeyframeEffectReadOnly.h: LayoutTests: No longer mark this test as flaky. * platform/ios-wk2/TestExpectations: * platform/mac-wk1/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/200192@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
8 changed files
with
109 additions
and
6 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