LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Mar 2006 09:10:17 +0000 (09:10 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Mar 2006 09:10:17 +0000 (09:10 +0000)
commit437993bd5c281f174bb9c0c89163868e69548c94
treede148b5692bbbec9a03e84cf8f5c11b6f0abcd66
parentf559d7aac2d0a941fece8a440202b9631bc9442a
LayoutTests:

        Reviewed by Hyatt.

        Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7797
        Can't set background color on new text fields

        * fast/forms/input-appearance-bkcolor-expected.checksum: Added.
        * fast/forms/input-appearance-bkcolor-expected.png: Added.
        * fast/forms/input-appearance-bkcolor-expected.txt: Added.
        * fast/forms/input-appearance-bkcolor.html: Added.
        * fast/forms/resources
        * fast/forms/resources/apple.gif

WebCore:

        Reviewed by Hyatt.

        WebCore part of fix for:
        http://bugzilla.opendarwin.org/show_bug.cgi?id=7797
        Can't set background color on new text fields

        Bezeled NSTextFieldCells always draw a background, so instead we'll use a new
        WebKitSystemInterface function to just draw the border of the cell.

        Since the theme is drawing the border and the engine is drawing the background
        (which is different from the other form controls), we have to make sure we let the
        theme paint the border after the engine paints the background.

        * platform/mac/WebCoreGraphicsBridge.h:
        * platform/mac/WebCoreGraphicsBridge.m:
        (-[WebCoreGraphicsBridge drawBezeledTextFieldCell:enabled:]):
        * rendering/render_box.cpp: (WebCore::RenderBox::paintBoxDecorations):
        * rendering/render_theme.cpp:
        (WebCore::RenderTheme::paint):
        (WebCore::RenderTheme::paintBorder):
        (WebCore::RenderTheme::shouldPaintBorder):
        * rendering/render_theme.h:
        * rendering/render_theme_mac.mm:
        (WebCore::RenderThemeMac::paintTextField):
        (WebCore::RenderThemeMac::setTextFieldCellState):

WebKit:

        Reviewed by Hyatt.

        WebKit part of fix for:
        http://bugzilla.opendarwin.org/show_bug.cgi?id=7797
        Can't set background color on new text fields

        Added function to draw bezeled text field without drawing background.

        * WebCoreSupport/WebGraphicsBridge.m:
        (-[WebGraphicsBridge drawBezeledTextFieldCell:enabled:]): Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/forms/input-appearance-bkcolor-expected.checksum [new file with mode: 0644]
LayoutTests/fast/forms/input-appearance-bkcolor-expected.png [new file with mode: 0644]
LayoutTests/fast/forms/input-appearance-bkcolor-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/input-appearance-bkcolor.html [new file with mode: 0644]
LayoutTests/fast/forms/resources/apple.gif [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/mac/WebCoreGraphicsBridge.h
WebCore/platform/mac/WebCoreGraphicsBridge.m
WebCore/rendering/render_box.cpp
WebCore/rendering/render_theme.cpp
WebCore/rendering/render_theme.h
WebCore/rendering/render_theme_mac.mm
WebKit/ChangeLog
WebKit/WebCoreSupport/WebGraphicsBridge.m