Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web-animations] implement correct accumulation support for the filter property #6739

Merged

Conversation

graouts
Copy link
Contributor

@graouts graouts commented Nov 22, 2022

7b53609

[web-animations] implement correct accumulation support for the `filter` property
https://bugs.webkit.org/show_bug.cgi?id=248235

Reviewed by Tim Nguyen.

Implement the specific accumulation behavior for brightness(), contrast(), opacity()
and saturate() operations. We also ensure we have the correct clipping behavior for
various other operations since with accumulation support they could appear out of
bounds.

* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-iteration-composite-operation-expected.txt:
* Source/WebCore/platform/graphics/filters/FilterOperation.cpp:
(WebCore::FilterOperation::blendAmounts const):
(WebCore::BasicColorMatrixFilterOperation::blend):
(WebCore::BasicComponentTransferFilterOperation::blend):
* Source/WebCore/platform/graphics/filters/FilterOperation.h:

Canonical link: https://commits.webkit.org/256952@main

d69f5d6

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios   πŸ§ͺ api-mac βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv   πŸ§ͺ mac-wk1
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  watch   πŸ§ͺ mac-AS-debug-wk2
❌ πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim βœ… πŸ§ͺ mac-wk2-stress

@graouts graouts self-assigned this Nov 22, 2022
@graouts graouts added the Animations Bugs related to CSS + SVG animations and transitions label Nov 22, 2022
@graouts graouts added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Nov 22, 2022
…er` property

https://bugs.webkit.org/show_bug.cgi?id=248235

Reviewed by Tim Nguyen.

Implement the specific accumulation behavior for brightness(), contrast(), opacity()
and saturate() operations. We also ensure we have the correct clipping behavior for
various other operations since with accumulation support they could appear out of
bounds.

* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/keyframe-effects/effect-value-iteration-composite-operation-expected.txt:
* Source/WebCore/platform/graphics/filters/FilterOperation.cpp:
(WebCore::FilterOperation::blendAmounts const):
(WebCore::BasicColorMatrixFilterOperation::blend):
(WebCore::BasicComponentTransferFilterOperation::blend):
* Source/WebCore/platform/graphics/filters/FilterOperation.h:

Canonical link: https://commits.webkit.org/256952@main
@webkit-commit-queue
Copy link
Collaborator

Committed 256952@main (7b53609): https://commits.webkit.org/256952@main

Reviewed commits have been landed. Closing PR #6739 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 7b53609 into WebKit:main Nov 22, 2022
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Nov 22, 2022
@graouts graouts deleted the filter-accumulation branch November 22, 2022 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Animations Bugs related to CSS + SVG animations and transitions
Projects
None yet
4 participants