[webkit-changes] [WebKit/WebKit] 534a72: Compute values of basic shape rect() and xywh() as...

Darin Adler noreply at github.com
Sat Dec 16 07:18:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 534a722e7081523b73c20634c2932ab927c499a9
      https://github.com/WebKit/WebKit/commit/534a722e7081523b73c20634c2932ab927c499a9
  Author: Darin Adler <darin at apple.com>
  Date:   2023-12-16 (Sat, 16 Dec 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-masking/animations/clip-path-interpolation-xywh-rect-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-masking/parsing/clip-path-computed-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/motion/animation/offset-path-interpolation-006-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-path-computed-expected.txt
    M Source/WebCore/css/BasicShapeFunctions.cpp

  Log Message:
  -----------
  Compute values of basic shape rect() and xywh() as the equivalent inset()
https://bugs.webkit.org/show_bug.cgi?id=266513
rdar://problem/119739406

Reviewed by Tim Nguyen.

CSS Shapes called for this behavior but we did not implement it yet.

* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/animations/clip-path-interpolation-xywh-rect-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/parsing/clip-path-computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/animation/offset-path-interpolation-006-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/motion/parsing/offset-path-computed-expected.txt:
More PASS, less FAIL.

* Source/WebCore/css/BasicShapeFunctions.cpp:
(WebCore::valueForBasicShape): Added code that computes the equivalent inset as specified.
Use the CSSCalcValue machinery as needed.

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




More information about the webkit-changes mailing list