WebPlatformForEmbedded / WPEWebKit

WPE WebKit port (downstream)
210 stars 135 forks source link

Regression(251234@main): [Cairo][GTK][WPE] Darker output of SVG with … #1287

Closed pgorszkowski-igalia closed 4 months ago

pgorszkowski-igalia commented 4 months ago

…filters fediffuselighting

https://bugs.webkit.org/show_bug.cgi?id=268537

Reviewed by Said Abou-Hallawa and Nikolas Zimmermann.

Turn off the support for linearRGB color space in case of Cairo (251234@main) causes, that SVG with filter, where linearRGB as inputs is demanded, generates darker output.

The SVG spec says that SourceGraphic has to be in linearRGB color space: https://www.w3.org/TR/filter-effects-1/#attr-valuedef-in-sourcegraphic

In case of Cairo (which operates in SRGB color space) the image source (SourceGraphic) should be created in SRGB and before passing it to filters, it should be transformed to linearRGB color space.

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