Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 913e78026dea57e0ef5c86f7ef1649608fae191b
https://github.com/WebKit/WebKit/commit/913e78026dea57e0ef5c86f7ef1649608fae191b
Author: Kiet Ho <[email protected]>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M Source/WebCore/Headers.cmake
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
M Source/WebCore/style/values/color/StyleColor.cpp
M Source/WebCore/style/values/color/StyleColor.h
A Source/WebCore/style/values/color/StyleCurrentAccentColor.cpp
A Source/WebCore/style/values/color/StyleCurrentAccentColor.h
M Source/WebCore/style/values/color/StyleKeywordColor.cpp
Log Message:
-----------
[AccentColor] Add Style::CurrentAccentColor
rdar://184897363
https://bugs.webkit.org/show_bug.cgi?id=321775
Reviewed by Sam Weinig.
As an initial step to support AccentColor color keyword taking the value
of accent-color property, this patch adds a new Style::Color named
Style::CurrentAccentColor. Just like Style::CurrentColor, CurrentAccentColor
will resolve to the current accent-color, once fully implemented. For now
it returns the static accent color, just like how AccentColor used to work.
Tested by existing test suite.
* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/style/values/color/StyleColor.cpp:
(WebCore::Style::Color::Color):
* Source/WebCore/style/values/color/StyleColor.h:
(WebCore::Style::Color::switchOn const):
* Source/WebCore/style/values/color/StyleCurrentAccentColor.cpp: Added.
(WebCore::Style::serializationForCSSTokenization):
(WebCore::Style::operator<<):
* Source/WebCore/style/values/color/StyleCurrentAccentColor.h: Added.
(WebCore::Style::resolveColor):
(WebCore::Style::containsCurrentColor):
* Source/WebCore/style/values/color/StyleKeywordColor.cpp:
(WebCore::Style::toStyleColor):
Canonical link: https://commits.webkit.org/321211@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications