LayoutTests:
Reviewed by Darin.
- tests changed by http://bugzilla.opendarwin.org/show_bug.cgi?id=9955
Colors scaled from [0, 1] range to [0, 255] incorrectly
* fast/css/hsl-color-expected.checksum:
* fast/css/hsl-color-expected.png:
* fast/css/hsl-color-expected.txt:
* fast/forms/input-disabled-color-expected.checksum:
* fast/forms/input-disabled-color-expected.png:
* fast/forms/input-disabled-color-expected.txt:
WebCore:
Reviewed by Darin.
- patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=9955
Colors scaled from [0, 1] range to [0, 255] incorrectly
Fixes scaling issue and fixes Color to follow style guidelines.
* css/cssstyleselector.cpp:
(WebCore::CSSStyleSelector::getColorFromPrimitiveValue):
* platform/Color.cpp:
(WebCore::calcHue):
(WebCore::makeRGBAFromHSLA):
(WebCore::Color::Color):
(WebCore::Color::name):
(WebCore::Color::setNamedColor):
(WebCore::Color::light):
(WebCore::Color::dark):
(WebCore::blend):
* platform/Color.h:
(WebCore::Color::Color):
(WebCore::Color::isValid):
(WebCore::Color::red):
(WebCore::Color::green):
(WebCore::Color::blue):
(WebCore::Color::alpha):
(WebCore::Color::rgb):
(WebCore::Color::setRGB):
(WebCore::operator==):
(WebCore::operator!=):
* rendering/RenderObject.cpp:
(WebCore::RenderObject::drawBorder):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15734
268f45cc-cd09-0410-ab3c-
d52691b4dbfc