RESOLVED FIXED182600
[Web Animations] Always expose "composite" in output of getKeyframes()
https://bugs.webkit.org/show_bug.cgi?id=182600
Summary [Web Animations] Always expose "composite" in output of getKeyframes()
Antoine Quint
Reported 2018-02-08 03:13:50 PST
[Web Animations] Always expose "composite" in output of getKeyframes()
Attachments
Patch (52.51 KB, patch)
2018-02-08 03:15 PST, Antoine Quint
no flags
Patch (55.44 KB, patch)
2018-02-08 11:05 PST, Antoine Quint
dino: review+
Antoine Quint
Comment 1 2018-02-08 03:15:52 PST
EWS Watchlist
Comment 2 2018-02-08 03:17:26 PST
Attachment 333365 [details] did not pass style-queue: ERROR: Source/WebCore/animation/KeyframeEffect.cpp:454: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Total errors found: 1 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 3 2018-02-08 09:05:11 PST
Comment on attachment 333365 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=333365&action=review > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2191 > + return "std::nullopt" if $defaultValue eq "null"; and $type->isNullable ? If the enum type is not nullable, then null should not be a valid default value. Maybe we could "die" if the default value is null and the enum type is not nullable. Bindings change LGTM otherwise, although it'd be nice to have bindings test coverage. It is hard to review a bindings change without such coverage as I do not see the code it generates.
Antoine Quint
Comment 4 2018-02-08 09:28:19 PST
(In reply to Chris Dumez from comment #3) > Comment on attachment 333365 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=333365&action=review > > > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2191 > > + return "std::nullopt" if $defaultValue eq "null"; > > and $type->isNullable ? > > If the enum type is not nullable, then null should not be a valid default > value. Maybe we could "die" if the default value is null and the enum type > is not nullable. I'll add this. > Bindings change LGTM otherwise, although it'd be nice to have bindings test > coverage. It is hard to review a bindings change without such coverage as I > do not see the code it generates. Can you point me to a recent commit that adds a bindings test for "inspiration"?
Chris Dumez
Comment 5 2018-02-08 09:41:44 PST
B(In reply to Antoine Quint from comment #4) > (In reply to Chris Dumez from comment #3) > > Comment on attachment 333365 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=333365&action=review > > > > > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2191 > > > + return "std::nullopt" if $defaultValue eq "null"; > > > > and $type->isNullable ? > > > > If the enum type is not nullable, then null should not be a valid default > > value. Maybe we could "die" if the default value is null and the enum type > > is not nullable. > > I'll add this. > > > Bindings change LGTM otherwise, although it'd be nice to have bindings test > > coverage. It is hard to review a bindings change without such coverage as I > > do not see the code it generates. > > Can you point me to a recent commit that adds a bindings test for > "inspiration"? Basically just add new IDL to Source/WebCore/bindings/scripts/test/TestObj.idl , then run: Tools/Scripts/run-bindings-tests --reset-results
Antoine Quint
Comment 6 2018-02-08 11:05:38 PST
EWS Watchlist
Comment 7 2018-02-08 11:08:00 PST
Attachment 333393 [details] did not pass style-queue: ERROR: Source/WebCore/animation/KeyframeEffect.cpp:454: Should have only a single space after a punctuation in a comment. [whitespace/comments] [5] Total errors found: 1 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 8 2018-02-08 11:56:03 PST
Comment on attachment 333393 [details] Patch bindings LGTM
Antoine Quint
Comment 9 2018-02-08 23:31:23 PST
Radar WebKit Bug Importer
Comment 10 2018-02-08 23:32:43 PST
Note You need to log in before you can comment on or make changes to this bug.