Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Web Animations] Always expose "composite" in output of getKeyframes()
https://bugs.webkit.org/show_bug.cgi?id=182600 Reviewed by Dean Jackson. LayoutTests/imported/w3c: Update expected results to account for a number of progressions. * web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt: * web-platform-tests/web-animations/interfaces/KeyframeEffect/composite-expected.txt: * web-platform-tests/web-animations/interfaces/KeyframeEffect/setKeyframes-expected.txt: Source/WebCore: The Web Animations spec has changed and whereas the output of getKeyframes() would not feature the "composite" property for "null" values, it now lists "composite" in all cases. To support this, we needed to fix an issue in the code generator such that a "null" default value for an optional enum type was supported. * animation/KeyframeEffect.cpp: (WebCore::KeyframeEffect::getKeyframes): * animation/KeyframeEffect.h: * animation/KeyframeEffect.idl: * bindings/scripts/CodeGeneratorJS.pm: (GenerateDefaultValue): * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::convertDictionary<TestObj::Dictionary>): (WebCore::convertDictionaryToJS): * bindings/scripts/test/TestObj.idl: Canonical link: https://commits.webkit.org/198443@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
166 additions
and 115 deletions.
- +13 −0 LayoutTests/imported/w3c/ChangeLog
- +49 −49 ...utTests/imported/w3c/web-platform-tests/web-animations/interfaces/Animatable/animate-expected.txt
- +1 −1 ...s/imported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/composite-expected.txt
- +49 −49 ...mported/w3c/web-platform-tests/web-animations/interfaces/KeyframeEffect/setKeyframes-expected.txt
- +24 −0 Source/WebCore/ChangeLog
- +9 −16 Source/WebCore/animation/KeyframeEffect.cpp
- +1 −0 Source/WebCore/animation/KeyframeEffect.h
- +1 −0 Source/WebCore/animation/KeyframeEffect.idl
- +4 −0 Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
- +14 −0 Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
- +1 −0 Source/WebCore/bindings/scripts/test/TestObj.idl
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
@@ -1,6 +1,6 @@ | ||
|
||
PASS Default value | ||
PASS Change composite value | ||
PASS Unspecified keyframe composite value when setting effect composite | ||
PASS Specified keyframe composite value when setting effect composite | ||
|
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
@@ -48,4 +48,5 @@ dictionary BasePropertyIndexedKeyframe { | ||
double? offset = null; | ||
double computedOffset; | ||
DOMString easing = "linear"; | ||
CompositeOperation? composite = null; | ||
}; |
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