WebCore:
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2006 17:42:48 +0000 (17:42 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Sep 2006 17:42:48 +0000 (17:42 +0000)
commit8810d07b27b2251f9d2d306a2d9ddb4aabe1dcfd
treefa05341bc2daed2845705acf34f9083515cedb84
parente6ce51a882602a2ca8e43d04c8f5d44817d8f7b5
WebCore:
        Reviewed by Adele.

        Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10935
        REGRESSION: file upload control with direction:rtl or text-align:right
        draws button on top of filename/icon

        * rendering/RenderFileUploadControl.cpp:
        (WebCore::RenderFileUploadControl::setStyle): Force text-align to
        match direction
        (WebCore::RenderFileUploadControl::paintObject): Fix positioning of
        the filename and icon in RTL

LayoutTests:
        Reviewed by Adele.

        Adding test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10935
        REGRESSION: file upload control with direction:rtl or text-align:right
        draws button on top of filename/icon

        * fast/forms/file-input-direction-expected.checksum: Added.
        * fast/forms/file-input-direction-expected.png: Added.
        * fast/forms/file-input-direction-expected.txt: Added.
        * fast/forms/file-input-direction.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16472 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/file-input-direction-expected.checksum [new file with mode: 0644]
LayoutTests/fast/forms/file-input-direction-expected.png [new file with mode: 0644]
LayoutTests/fast/forms/file-input-direction-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/file-input-direction.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderFileUploadControl.cpp