[webkit-changes] [WebKit/WebKit] b3a724: Change the initial value of dynamic-range-limit to...

Gerald Squelart noreply at github.com
Fri Feb 28 19:17:16 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b3a724ce17d018d1b8c34d73c6c0b3ac17e9dbac
      https://github.com/WebKit/WebKit/commit/b3a724ce17d018d1b8c34d73c6c0b3ac17e9dbac
  Author: Gerald Squelart <g_squelart at apple.com>
  Date:   2025-02-28 (Fri, 28 Feb 2025)

  Changed paths:
    A LayoutTests/fast/css/dynamic-range-limit-default-expected.txt
    A LayoutTests/fast/css/dynamic-range-limit-default.html
    M LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/inheritance-expected.txt
    M Source/WebCore/css/CSSProperties.json
    M Source/WebCore/css/html.css
    M Source/WebCore/css/parser/CSSParserContext.cpp
    M Source/WebCore/html/HTMLMediaElement.h
    M Source/WebCore/platform/graphics/MediaPlayer.h
    M Source/WebCore/platform/graphics/PlatformDynamicRangeLimit.h
    M Source/WebCore/rendering/style/RenderStyleInlines.h
    M Source/WebCore/style/StyleBuilderConverter.h
    M Tools/TestWebKitAPI/Tests/WebCore/PlatformDynamicRangeLimitTests.cpp

  Log Message:
  -----------
  Change the initial value of dynamic-range-limit to constrained-high and add a UA style rule to continue rendering videos in full HDR
https://bugs.webkit.org/show_bug.cgi?id=288748
rdar://145784202

Reviewed by Cameron McCormack.

To start gently along the path to HDR websites, this
patch sets the initial (aka default) value of
dynamic-range-limit to constrained-high.

For historical reasons, videos have already been
presented in full HDR, so a UA rule was added to make
videos no-limit by default.

* LayoutTests/fast/css/dynamic-range-limit-default-expected.txt: Added.
* LayoutTests/fast/css/dynamic-range-limit-default.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-color-hdr/inheritance-expected.txt:
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/html.css:
(video):
* Source/WebCore/css/parser/CSSParserContext.cpp:
(WebCore::applyUASheetBehaviorsToContext):
* Source/WebCore/html/HTMLMediaElement.h:
* Source/WebCore/platform/graphics/MediaPlayer.h:
* Source/WebCore/platform/graphics/PlatformDynamicRangeLimit.h:
* Source/WebCore/rendering/style/RenderStyleInlines.h:
(WebCore::RenderStyle::initialDynamicRangeLimit):
* Source/WebCore/style/StyleBuilderConverter.h:
(WebCore::Style::BuilderConverter::convertDynamicRangeLimit):
* Tools/TestWebKitAPI/Tests/WebCore/PlatformDynamicRangeLimitTests.cpp:
(TestWebKitAPI::TEST(PlatformDynamicRangeLimit, DefaultConstruction)):

Canonical link: https://commits.webkit.org/291421@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