[webkit-changes] [WebKit/WebKit] 53bb74: Use double precision for CalcExpressionBlendLength.

mattwoodrow noreply at github.com
Sun Dec 18 22:39:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 53bb745eddb3c6459fa614930574c83244fdd891
      https://github.com/WebKit/WebKit/commit/53bb745eddb3c6459fa614930574c83244fdd891
  Author: Matt Woodrow <mattwoodrow at apple.com>
  Date:   2022-12-18 (Sun, 18 Dec 2022)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-transforms/animation/transform-origin-interpolation-expected.txt
    M Source/WebCore/platform/calc/CalcExpressionBlendLength.cpp
    M Source/WebCore/platform/calc/CalcExpressionBlendLength.h

  Log Message:
  -----------
  Use double precision for CalcExpressionBlendLength.
https://bugs.webkit.org/show_bug.cgi?id=249563
<rdar://103496037>

Reviewed by Simon Fraser and Sam Weinig.

The incoming type from BlendingContext is a double, so we should keep it as double to improve the precision of the evaluated blend function.

This fixes the perspective-origin-interpolation.html WPT test on arm64, and transform-origin-interpolation everywhere.

* Source/WebCore/platform/calc/CalcExpressionBlendLength.cpp:
(WebCore::CalcExpressionBlendLength::CalcExpressionBlendLength):
(WebCore::CalcExpressionBlendLength::evaluate const):
* Source/WebCore/platform/calc/CalcExpressionBlendLength.h:

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




More information about the webkit-changes mailing list