Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 126e9c6fc2313c7e6232a538f382b8dbb6f3224c
      
https://github.com/WebKit/WebKit/commit/126e9c6fc2313c7e6232a538f382b8dbb6f3224c
  Author: Antoine Quint <grao...@webkit.org>
  Date:   2024-02-16 (Fri, 16 Feb 2024)

  Changed paths:
    M Source/WebCore/animation/KeyframeEffect.cpp
    M Source/WebCore/rendering/RenderLayerBacking.cpp

  Log Message:
  -----------
  [threaded-animation-resolution] don't accelerate size-dependent transform 
interpolation with if width and `height` are animated
https://bugs.webkit.org/show_bug.cgi?id=269563

Reviewed by Dean Jackson.

We fixed a case in 272022@main where animating `width` or `height` while also 
animating `translate` or `transform: translate()`
with relative values would require transform interpolation to not be 
accelerated.

We now do the same work with threaded animation resolution, which makes the 
following WPT tests pass:

- 
css/css-transforms/animation/transform-percent-with-width-and-height-separate.html:
 Added.
- css/css-transforms/animation/transform-percent-with-width-and-height.html: 
Added.
- 
css/css-transforms/animation/translate-percent-with-width-and-height-separate.html:
 Added.
- css/css-transforms/animation/translate-percent-with-width-and-height.html: 
Added.

* Source/WebCore/animation/KeyframeEffect.cpp:
(WebCore::KeyframeEffect::canBeAccelerated const):
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateAcceleratedEffectsAndBaseValues):

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


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to