Expose more semantic system colors.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Jun 2018 19:16:59 +0000 (19:16 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 14 Jun 2018 19:16:59 +0000 (19:16 +0000)
commit60489f0b127516e92dd30c69e41e25fa7b48a90c
tree0a26cf204ba4db069f95d1cd4b6e5dd8fb88874e
parentca2540b63859473e7d26fee24db17c717f496fc4
Expose more semantic system colors.

https://bugs.webkit.org/show_bug.cgi?id=186609
rdar://problem/39287277

Reviewed by Tim Horton.

Source/WebCore:

Add the following semantic colors:
 -apple-system-control-accent
 -apple-system-even-alternating-content-background
 -apple-system-odd-alternating-content-background
 -apple-system-selected-content-background
 -apple-system-unemphasized-selected-content-background
 -apple-system-selected-text
 -apple-system-unemphasized-selected-text
 -apple-system-selected-text-background
 -apple-system-unemphasized-selected-text-background
 -apple-system-placeholder-text
 -apple-system-find-highlight-background
 -apple-system-separator

* css/CSSValueKeywords.in:
* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::systemColor const):

Source/WebCore/PAL:

* pal/spi/cocoa/NSColorSPI.h: Added findHighlightColor and placeholderTextColor.

LayoutTests:

* fast/css/apple-system-control-colors.html: Updated for new colors.
* fast/css/apple-system-control-colors-expected.txt: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/apple-system-control-colors-expected.txt
LayoutTests/fast/css/apple-system-control-colors.html
Source/WebCore/ChangeLog
Source/WebCore/PAL/ChangeLog
Source/WebCore/PAL/pal/spi/cocoa/NSColorSPI.h
Source/WebCore/css/CSSValueKeywords.in
Source/WebCore/rendering/RenderThemeMac.mm