WebCore:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Apr 2006 16:43:35 +0000 (16:43 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Apr 2006 16:43:35 +0000 (16:43 +0000)
commitba18848a972ceb551f6d6a7d7c27aa63c90390de
treed00ad9aa1b1448d4121600af74555ddc42b32183
parentdab4e695b907ee90c957b1c4b7311314cd7c3827
WebCore:
        Reviewed by Darin.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8407
        REGRESSION (NativeTextField): Leading and trailing spaces trimmed from text field value attribute

        * rendering/RenderTextField.cpp: (WebCore::RenderTextField::createDivStyle):
        Use white-space:pre for the inner div to avoid collapsing spaces in the text field.

LayoutTests:
        Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8407
        REGRESSION (NativeTextField): Leading and trailing spaces trimmed from text field value attribute

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

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