WebCore: 'transparent' should be a valid color
authorjchaffraix@webkit.org <jchaffraix@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Oct 2010 01:22:44 +0000 (01:22 +0000)
committerjchaffraix@webkit.org <jchaffraix@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Oct 2010 01:22:44 +0000 (01:22 +0000)
commit2943d9eb4f2d924c7e0e21787ce21ec0cd8021ba
tree4d307bf6abd05e1bfdfaac09b8fd823972927dc7
parent6f59d104fe5dc9af76c1f92e01a3072545b7dc12
WebCore: 'transparent' should be a valid color
https://bugs.webkit.org/show_bug.cgi?id=45482

Reviewed by Andreas Kling.

Test: svg/animations/svg-animate-color-transparent.svg

Based on previous work by Jan Erik Hanssen  <jhanssen@codeaurora.org>

* platform/ColorData.gperf: Added 'transparent' to the list of colors.
Added the alpha to all the colors as it was needed to support the new color.

* platform/graphics/Color.cpp:
(WebCore::Color::Color):
(WebCore::Color::setNamedColor): Avoid setting the alpha as now it is not
always 0xFF.

LayoutTests: Test for: 'transparent' should be a valid color
https://bugs.webkit.org/show_bug.cgi?id=45482

Reviewed by Andreas Kling.

Test that animation works with 'transparent' as they check the validity of the
color.

* svg/animations/svg-animate-color-transparent-expected.txt: Added.
* svg/animations/svg-animate-color-transparent.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@69937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/animations/svg-animate-color-transparent-expected.txt [new file with mode: 0644]
LayoutTests/svg/animations/svg-animate-color-transparent.svg [new file with mode: 0644]
WebCore/ChangeLog
WebCore/make-hash-tools.pl
WebCore/platform/ColorData.gperf
WebCore/platform/graphics/Color.cpp