Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 41b432cafb957d1fdd83f96ffc767a15501de1ea
      
https://github.com/WebKit/WebKit/commit/41b432cafb957d1fdd83f96ffc767a15501de1ea
  Author: Cathie Chen <cathiec...@igalia.com>
  Date:   2022-10-26 (Wed, 26 Oct 2022)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/animation/contain-intrinsic-size-interpolation-expected.txt
    M Source/WebCore/animation/CSSPropertyAnimation.cpp

  Log Message:
  -----------
  [web-animations] contain-intrinsic-* properties should support animations
https://bugs.webkit.org/show_bug.cgi?id=241184

Reviewed by Antoine Quint.

This patch support animations for contain-intrinsic-size related properties. As 
the value of contain-intrinsic-size is consitent of ContainIntrinsicSizeType
and an std::optional<LayoutUnit> value. In this patch, we added 
OptionalLengthPropertyWrapper to handle the optinal length, and 
ContainIntrinsiclLengthPropertyWrapper
to handle ContainIntrinsicSizeType.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/animation/contain-intrinsic-size-interpolation-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::OptionalLengthPropertyWrapper::OptionalLengthPropertyWrapper):
(WebCore::OptionalLengthPropertyWrapper::canInterpolate const):
(WebCore::OptionalLengthPropertyWrapper::blend const):
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):

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


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

Reply via email to