WebKit should default to using sRGB with NSColor conversion instead of device
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 May 2017 20:25:46 +0000 (20:25 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 May 2017 20:25:46 +0000 (20:25 +0000)
commit0a2a9d61f21658eac3d8d6ff54a3fef1f6935ea0
tree35871efea93fc253b1cfb8d5ddd66f52c9e69cee
parentc8633a27060a9638b86f9c2f5c15d4f3a5d11995
WebKit should default to using sRGB with NSColor conversion instead of device
color space
https://bugs.webkit.org/show_bug.cgi?id=171745
-and corresponding-
rdar://problem/28314183

Reviewed by Tim Horton.

Source/WebCore:

* platform/graphics/mac/ColorMac.mm:
(WebCore::makeRGBAFromNSColor):
(WebCore::nsColor):

LayoutTests:

* editing/mac/attributed-string/anchor-element-expected.txt:
* editing/mac/attributed-string/basic-expected.txt:
* editing/mac/attributed-string/comment-cdata-section-expected.txt:
* editing/mac/attributed-string/font-size-expected.txt:
* editing/mac/attributed-string/font-style-variant-effect-expected.txt:
* editing/mac/attributed-string/font-weight-expected.txt:
* editing/mac/attributed-string/letter-spacing-expected.txt:
* editing/mac/attributed-string/text-decorations-expected.txt:
* editing/mac/attributed-string/vertical-align-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/mac/attributed-string/anchor-element-expected.txt
LayoutTests/editing/mac/attributed-string/basic-expected.txt
LayoutTests/editing/mac/attributed-string/comment-cdata-section-expected.txt
LayoutTests/editing/mac/attributed-string/font-size-expected.txt
LayoutTests/editing/mac/attributed-string/font-style-variant-effect-expected.txt
LayoutTests/editing/mac/attributed-string/font-weight-expected.txt
LayoutTests/editing/mac/attributed-string/letter-spacing-expected.txt
LayoutTests/editing/mac/attributed-string/text-decorations-expected.txt
LayoutTests/editing/mac/attributed-string/vertical-align-expected.txt
LayoutTests/platform/mac-elcapitan/editing/mac/attributed-string/font-style-variant-effect-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/mac/ColorMac.mm