Branch: refs/heads/webkitglib/2.52
Home: https://github.com/WebKit/WebKit
Commit: 9dadc843604148a78b1bb739c282bfb99c9372d3
https://github.com/WebKit/WebKit/commit/9dadc843604148a78b1bb739c282bfb99c9372d3
Author: Pawel Lampe <[email protected]>
Date: 2026-03-05 (Thu, 05 Mar 2026)
Changed paths:
M LayoutTests/fast/snapshot/nested-stacking-context.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-text-decor/text-shadow/color-inherit.html
M
LayoutTests/imported/w3c/web-platform-tests/css/css-view-transitions/table-caption.html
M
LayoutTests/imported/w3c/web-platform-tests/webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/bold_object/bold_timestamp_future.html
M
LayoutTests/imported/w3c/web-platform-tests/webvtt/rendering/cues-with-video/processing-model/selectors/cue_function/not_root_selector.html
M Source/WebCore/platform/graphics/FontRenderOptions.h
M Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
M
Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp
M
Source/WebCore/platform/graphics/skia/ImageBufferSkiaUnacceleratedBackend.cpp
M Source/WebCore/platform/graphics/skia/PlatformDisplaySkia.cpp
M Source/WebCore/platform/graphics/skia/ShareableBitmapSkia.cpp
M
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedTileBuffer.cpp
Log Message:
-----------
Cherry-pick 308692@main (461326156329).
https://bugs.webkit.org/show_bug.cgi?id=309152
[Skia] Text rendered as much less heavy compared to other browsers
https://bugs.webkit.org/show_bug.cgi?id=309152
Reviewed by Carlos Garcia Campos.
This change makes all the text rendered by skia look right - i.e.
just like in other browsers - by incorrectly blending in linear color
space despite target being in non-linear color space.
Until this patch, the rendering was done mathematically correct i.e.
the blending was done with respect to target's color space. However,
historically, many fonts were designed for incorrect blending and hence
they look the most "correct" in such a circumstances.
As skia internally implements so called "gamma hack", this change
tweaks SkSurfaceProps to properly tune it so that text looks correct.
Despite chromium uses 0.2 for contrast and 1.2 for gamma, this change
chooses 0 for contrast and 1 for gamma, as the results are visually
indistinguishable and yet in some reftests, the differences between
anti-aliased pixels are smaller. So in other words, this change makes
text anti-aliasing more stable (uniform) when it comes to very small,
sub-pixel positioning differences.
No new tests.
Canonical link: https://commits.webkit.org/308692@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications