2011-02-04 Carlos Garcia Campos <cgarcia@igalia.com>
authormrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 03:37:22 +0000 (03:37 +0000)
committermrobinson@webkit.org <mrobinson@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 03:37:22 +0000 (03:37 +0000)
commit78e25c7ca42fcd3b3b977eb9748d1bd97c02b044
tree3e81a8c7f5c089d1647a70be470e17b88ca12d44
parent1b581e618a08849098faef712e675fdc0b05be2a
2011-02-04  Carlos Garcia Campos  <cgarcia@igalia.com>

        Reviewed by Martin Robinson.

        Update expected results reflecting the change to search icon rendering.

        * platform/gtk/fast/css/input-search-padding-expected.checksum:
        * platform/gtk/fast/css/input-search-padding-expected.png:
        * platform/gtk/fast/css/input-search-padding-expected.txt:
        * platform/gtk/fast/forms/search-styled-expected.checksum:
        * platform/gtk/fast/forms/search-styled-expected.png:
        * platform/gtk/fast/forms/search-styled-expected.txt:
        * platform/gtk/fast/forms/search-vertical-alignment-expected.checksum:
        * platform/gtk/fast/forms/search-vertical-alignment-expected.png:
        * platform/gtk/fast/forms/search-zoomed-expected.checksum:
        * platform/gtk/fast/forms/search-zoomed-expected.png:
        * platform/gtk/fast/forms/search-zoomed-expected.txt:
        * platform/gtk/fast/forms/searchfield-heights-expected.checksum:
        * platform/gtk/fast/forms/searchfield-heights-expected.png:
        * platform/gtk/fast/forms/searchfield-heights-expected.txt:
2011-02-04  Carlos Garcia Campos  <cgarcia@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] Don't use a fixed size for search field icons
        https://bugs.webkit.org/show_bug.cgi?id=50624

        Use the parent input content box to make sure the icon fits in the
        search field, scaling it down when needed.

        * platform/gtk/RenderThemeGtk.cpp:
        (WebCore::paintGdkPixbuf):
        (WebCore::getIconSizeForPixelSize):
        (WebCore::adjustSearchFieldIconStyle):
        (WebCore::RenderThemeGtk::adjustSearchFieldResultsDecorationStyle):
        (WebCore::centerRectVerticallyInParentInputElement):
        (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
        (WebCore::RenderThemeGtk::adjustSearchFieldCancelButtonStyle):
        (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
        (WebCore::RenderThemeGtk::paintCapsLockIndicator):
        (WebCore::RenderThemeGtk::paintMediaButton):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/gtk/fast/css/input-search-padding-expected.checksum
LayoutTests/platform/gtk/fast/css/input-search-padding-expected.png
LayoutTests/platform/gtk/fast/css/input-search-padding-expected.txt
LayoutTests/platform/gtk/fast/forms/search-styled-expected.checksum
LayoutTests/platform/gtk/fast/forms/search-styled-expected.png
LayoutTests/platform/gtk/fast/forms/search-styled-expected.txt
LayoutTests/platform/gtk/fast/forms/search-vertical-alignment-expected.checksum
LayoutTests/platform/gtk/fast/forms/search-vertical-alignment-expected.png
LayoutTests/platform/gtk/fast/forms/search-zoomed-expected.checksum
LayoutTests/platform/gtk/fast/forms/search-zoomed-expected.png
LayoutTests/platform/gtk/fast/forms/search-zoomed-expected.txt
LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.checksum
LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.png
LayoutTests/platform/gtk/fast/forms/searchfield-heights-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/platform/gtk/RenderThemeGtk.cpp