Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8a3d3672b571656a923a0ed60872d771ac33b133
      
https://github.com/WebKit/WebKit/commit/8a3d3672b571656a923a0ed60872d771ac33b133
  Author: Sam Weinig <wei...@apple.com>
  Date:   2024-04-14 (Sun, 14 Apr 2024)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-color-mix-function-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-color/parsing/color-valid-color-mix-function-expected.txt
    M Source/WebCore/css/CSSGradientValue.cpp
    M Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp
    M Source/WebCore/platform/graphics/ColorInterpolationMethod.cpp
    M Source/WebCore/platform/graphics/ColorInterpolationMethod.h
    M Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in

  Log Message:
  -----------
  Add missing color interpolation methods added to CSS color since initial 
implementation
https://bugs.webkit.org/show_bug.cgi?id=272646

Reviewed by Tim Nguyen.

Adds support for the four additional color interpolation methods,
`display-p3`, `a98-rgb`, `prophoto-rgb` and `rec2020`, that have
been added as valid interpolation method color spaces since the
initial implementation.

Tests updated:
    
imported/w3c/web-platform-tests/css/css-color/parsing/color-computed-color-mix-function.html
    
imported/w3c/web-platform-tests/css/css-color/parsing/color-valid-color-mix-function.html

* Source/WebCore/css/CSSGradientValue.cpp:
(WebCore::appendColorInterpolationMethod):
(WebCore::appendHueInterpolationMethod): Deleted.
Refactor to re-use more of the existing serialization in 
ColorInterpolationMethod.h
and reduce duplication by using a generic overload.

* Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeColorInterpolationMethod):
Adds support for parsing the new color spaces. Also fixes the comment
with the spec text to remove "specified" as a hue-interpolation-method
as that is no longer supported (both in the spec and WebCore).

* Source/WebCore/platform/graphics/ColorInterpolationMethod.cpp:
(WebCore::serializationForCSS):
(WebCore::operator<<):
* Source/WebCore/platform/graphics/ColorInterpolationMethod.h:
(WebCore::serializationForCSS):
Add new interpolation method color spaces and their serialization.
Expose a few serialization helpers so that the gradient serialization
can use them as well.

* Source/WebKit/Shared/WebCoreArgumentCoders.serialization.in:
Update to match new definitions.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to