LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2006 06:15:38 +0000 (06:15 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Aug 2006 06:15:38 +0000 (06:15 +0000)
commit70d4914932645a121bf3a3283560384bd83c79c4
tree2f9dec71ba86034775764023290287a759124601
parent4a96852cabd2de665342fa43fe9149f8b7f59943
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
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/css/hsl-color-expected.checksum
LayoutTests/fast/css/hsl-color-expected.png
LayoutTests/fast/css/hsl-color-expected.txt
LayoutTests/fast/forms/input-disabled-color-expected.checksum
LayoutTests/fast/forms/input-disabled-color-expected.png
LayoutTests/fast/forms/input-disabled-color-expected.txt
WebCore/ChangeLog
WebCore/css/cssstyleselector.cpp
WebCore/platform/Color.cpp
WebCore/platform/Color.h
WebCore/rendering/RenderObject.cpp