[webkit-changes] [WebKit/WebKit] b3c8e4: Add strongly typed representation for `dynamic-ran...

Sam Weinig noreply at github.com
Sun Feb 9 11:13:42 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b3c8e4373f501e022b3e15e152b648f05bcd1802
      https://github.com/WebKit/WebKit/commit/b3c8e4373f501e022b3e15e152b648f05bcd1802
  Author: Sam Weinig <sam at webkit.org>
  Date:   2025-02-09 (Sun, 09 Feb 2025)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/computed-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/inheritance-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/interpolation-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/parsing-expected.txt
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
    M Source/WebCore/Headers.cmake
    M Source/WebCore/SaferCPPExpectations/RefCntblBaseVirtualDtorExpectations
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/animation/CSSPropertyAnimation.cpp
    A Source/WebCore/css/CSSDynamicRangeLimitValue.cpp
    A Source/WebCore/css/CSSDynamicRangeLimitValue.h
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/CSSValue.cpp
    M Source/WebCore/css/CSSValue.h
    M Source/WebCore/css/CSSValueKeywords.in
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.cpp
    M Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.h
    M Source/WebCore/css/values/CSSValueAggregates.h
    A Source/WebCore/css/values/color/CSSDynamicRangeLimit.cpp
    A Source/WebCore/css/values/color/CSSDynamicRangeLimit.h
    A Source/WebCore/css/values/color/CSSDynamicRangeLimitMix.h
    M Source/WebCore/rendering/style/RenderStyle.cpp
    M Source/WebCore/rendering/style/RenderStyle.h
    M Source/WebCore/rendering/style/RenderStyleInlines.h
    M Source/WebCore/rendering/style/RenderStyleSetters.h
    M Source/WebCore/rendering/style/StyleRareInheritedData.cpp
    M Source/WebCore/rendering/style/StyleRareInheritedData.h
    M Source/WebCore/style/StyleBuilderConverter.h
    M Source/WebCore/style/StyleBuilderCustom.h
    A Source/WebCore/style/values/color/StyleDynamicRangeLimit.cpp
    A Source/WebCore/style/values/color/StyleDynamicRangeLimit.h
    A Source/WebCore/style/values/color/StyleDynamicRangeLimitMix.cpp
    A Source/WebCore/style/values/color/StyleDynamicRangeLimitMix.h

  Log Message:
  -----------
  Add strongly typed representation for `dynamic-range-limit` property
https://bugs.webkit.org/show_bug.cgi?id=287335

Reviewed by Tim Nguyen.

Implements parsing, value representation, mix resolution
and animation for 'dynamic-range-limit'.

The renderer still needs to do something with the value to make
it useful, so this is behind a new feature flag "CSSDynamicRangeLimitPropertyEnabled"
set to "testable".

The recursive nature of dynamic-range-limit-mix() means this
representation is a bit more complex than others but only
requires allocation when a mix function is actually used.

* LayoutTests/platform/glib/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/parsing-expected.txt:
    - Update results to passing.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
* Source/WebCore/css/CSSDynamicRangeLimitValue.cpp: Added.
* Source/WebCore/css/CSSDynamicRangeLimitValue.h: Added.
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/CSSValue.cpp:
* Source/WebCore/css/CSSValue.h:
* Source/WebCore/css/CSSValueKeywords.in:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.cpp:
* Source/WebCore/css/parser/CSSPropertyParserConsumer+Color.h:
* Source/WebCore/css/values/CSSValueAggregates.h:
* Source/WebCore/css/values/color/CSSDynamicRangeLimit.cpp: Added.
* Source/WebCore/css/values/color/CSSDynamicRangeLimit.h: Added.
* Source/WebCore/css/values/color/CSSDynamicRangeLimitMix.h: Added.
* Source/WebCore/rendering/style/RenderStyle.cpp:
* Source/WebCore/rendering/style/RenderStyle.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
* Source/WebCore/rendering/style/RenderStyleSetters.h:
* Source/WebCore/rendering/style/StyleRareInheritedData.cpp:
* Source/WebCore/rendering/style/StyleRareInheritedData.h:
* Source/WebCore/style/StyleBuilderConverter.h:
* Source/WebCore/style/StyleBuilderCustom.h:
* Source/WebCore/style/values/color/StyleDynamicRangeLimit.cpp: Added.
* Source/WebCore/style/values/color/StyleDynamicRangeLimit.h: Added.
* Source/WebCore/style/values/color/StyleDynamicRangeLimitMix.cpp: Added.
* Source/WebCore/style/values/color/StyleDynamicRangeLimitMix.h: Added.

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list