2009-06-08 Adam Langley <agl@google.com>
authoragl@chromium.org <agl@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Jun 2009 17:52:30 +0000 (17:52 +0000)
committeragl@chromium.org <agl@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Jun 2009 17:52:30 +0000 (17:52 +0000)
commitbe4b4d8b792bc4a2df7e3bc3aeaddc246a11598f
tree18390d4b09561216807a1cfc1df14b4bfa4ad4ad
parentbd17a45ff245793904e5969389cebd6d9f07d951
2009-06-08  Adam Langley  <agl@google.com>

        Reviewed by Eric Siedel.

        Chromium Linux ignored the background color on <select>s. Rather
        than encode magic colours, we start with a base color (specified
        via CSS) and derive the other colors from it. Thus, setting the
        CSS background-color now correctly changes the colour of the
        control.

        This should not change the appearence controls without
        background-colors. However, <select>s with a background-color
        will now renderer correctly, which may require rebaselining
        pixel tests in the Chromium tree.

        https://bugs.webkit.org/show_bug.cgi?id=26030
        http://code.google.com/p/chromium/issues/detail?id=12596

        * platform/graphics/Color.cpp:
        (WebCore::Color::getHSL): new member
        * platform/graphics/Color.h:
        * rendering/RenderThemeChromiumLinux.cpp:
        (WebCore::RenderThemeChromiumLinux::systemColor):
        (WebCore::brightenColor):
        (WebCore::paintButtonLike):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@44503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/css/themeChromiumLinux.css [new file with mode: 0644]
WebCore/platform/graphics/Color.cpp
WebCore/platform/graphics/Color.h
WebCore/rendering/RenderThemeChromiumLinux.cpp
WebCore/rendering/RenderThemeChromiumLinux.h