Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 639e07c705cea96bbd131210e19ffe11c4e88152
https://github.com/WebKit/WebKit/commit/639e07c705cea96bbd131210e19ffe11c4e88152
Author: Joanne Pan <[email protected]>
Date: 2026-10-07 (Wed, 07 Oct 2026)
Changed paths:
M Source/WebCore/platform/Theme.cpp
M Source/WebCore/platform/Theme.h
M Source/WebCore/platform/cocoa/ThemeCocoa.h
M Source/WebCore/platform/cocoa/ThemeCocoa.mm
M Source/WebCore/style/values/images/kinds/StyleNamedImage.cpp
Log Message:
-----------
[AXCustomColorMode] Named images should follow a changed surface
https://bugs.webkit.org/show_bug.cgi?id=326629
rdar://189372842
Reviewed by Simon Fraser.
-webkit-named-image() is painted by the theme, so -apple-color-filter never
reaches it and a mark can end up the same luminance as the surface it sits on.
Ask the theme for the variant suited to the changed surface before drawing.
* Source/WebCore/platform/Theme.h:
* Source/WebCore/platform/cocoa/ThemeCocoa.h:
* Source/WebCore/platform/cocoa/ThemeCocoa.mm:
(WebCore::ThemeCocoa::invertedNamedImage const):
* Source/WebCore/style/values/images/kinds/StyleNamedImage.cpp:
(WebCore::Style::adjustNamedImage):
(WebCore::Style::NamedImage::draw const):
(WebCore::Style::NamedImage::drawAsPattern const):
Canonical link: https://commits.webkit.org/323031@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications