-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 275168@main (9f21b9e). https://bugs.webkit.org/show_bug.c…
…gi?id=269288 [Nicosia] Add support for translate/rotate/scale animations https://bugs.webkit.org/show_bug.cgi?id=269288 Reviewed by Nikolas Zimmermann. Nicosia already supports accelerated transform animations. This patch implements translate, rotate, and scale animations. It also ensures that when multiple animations are applied, they run in the correct order required the spec [1]: - translate - rotate - scale - transform [1] https://drafts.csswg.org/css-transforms-2/#ctm * LayoutTests/platform/glib/TestExpectations: * LayoutTests/platform/wpe/TestExpectations: * Source/WebCore/platform/graphics/nicosia/NicosiaAnimation.cpp: (Nicosia::Animation::apply): (Nicosia::Animation::applyInternal): (Nicosia::Animations::apply): (Nicosia::Animations::hasRunningTransformAnimations const): (Nicosia::Animation::applyKeepingInternalState): Deleted. (Nicosia::Animations::applyKeepingInternalState): Deleted. * Source/WebCore/platform/graphics/nicosia/NicosiaAnimation.h: (Nicosia::Animations::setTranslate): (Nicosia::Animations::setRotate): (Nicosia::Animations::setScale): (Nicosia::Animations::setTransform): * Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp: (WebCore::TextureMapperLayer::syncAnimations): * Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp: (WebCore::CoordinatedGraphicsLayer::didChangeAnimations): (WebCore::CoordinatedGraphicsLayer::addAnimation): (WebCore::CoordinatedGraphicsLayer::transformRelatedPropertyDidChange): * Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h: Canonical link: https://commits.webkit.org/275168@main
- Loading branch information
1 parent
186dcff
commit 83c85d3
Showing
7 changed files
with
138 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