2011-05-26 Keishi Hattori <keishi@webkit.org>
authorkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 May 2011 09:58:25 +0000 (09:58 +0000)
committerkeishi@webkit.org <keishi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 26 May 2011 09:58:25 +0000 (09:58 +0000)
commit772962a6bf005a5ff035a157c7f3333709580241
treed7ba76742a8aca42e3a648de905f801618ea55a8
parent8aa58f4343f4789b75c24b7f9d4a83a2847c5140
2011-05-26  Keishi Hattori  <keishi@webkit.org>

        Reviewed by Kent Tamura.

        Add <input type=color> appearance.
        https://bugs.webkit.org/show_bug.cgi?id=61275

        * fast/forms/color/input-appearance-color.html: Added. Tests appearance of input type=color.
        * platform/chromium/test_expectations.txt: Expect FAIL for fast/forms/color
        * platform/mac/fast/forms/color/input-appearance-color-expected.png: Added.
        * platform/mac/fast/forms/color/input-appearance-color-expected.txt: Added.
2011-05-26  Keishi Hattori  <keishi@webkit.org>

        Reviewed by Kent Tamura.

        Add <input type=color> appearance.
        https://bugs.webkit.org/show_bug.cgi?id=61275

        Test: fast/forms/color/input-appearance-color.html

        * css/html.css:
        (input[type="color"]): Adds square-button appearance.
        (input[type="color"]::-webkit-color-swatch-wrapper):
        (input[type="color"]::-webkit-color-swatch):
        (input[type="color"][list]): Adds menulist appearance.
        (input[type="color"][list]::-webkit-color-swatch-wrapper):
        (input[type="color"][list]::-webkit-color-swatch):
        * html/ColorInputType.cpp:
        (WebCore::ColorInputType::createShadowSubtree): Creates -webkit-color-swatch inside -webkit-color-swatch-wrapper.
        (WebCore::ColorInputType::updateColorSwatch): Updates background color of shadowColorSwatch.
        (WebCore::ColorInputType::valueChanged): Calls updateColorSwatch.
        (WebCore::ColorInputType::shadowColorSwatch): Gets shadowColorSwatch element.
        * html/ColorInputType.h:
        (WebCore::ColorInputType::ColorInputType): Changed to inherit InputType.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/color/input-appearance-color.html [new file with mode: 0644]
LayoutTests/platform/chromium/test_expectations.txt
LayoutTests/platform/mac/fast/forms/color/input-appearance-color-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/forms/color/input-appearance-color-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/html.css
Source/WebCore/html/ColorInputType.cpp
Source/WebCore/html/ColorInputType.h